Files
jitsi-meet/react/features/screen-share/functions.js
Andrei Gavrilescu 6d3d65da03 feat(screenshare): Audio only screenshare (#8922)
* audio only screen share implementation

* clean up

* handle stop screen share from chrome window

* update icon
2021-04-12 10:37:39 +03:00

26 lines
609 B
JavaScript

// @flow
import { isMacOS } from '../base/environment';
import { browser } from '../base/lib-jitsi-meet';
/**
* State of audio sharing.
*
* @param {Object} state - The state of the application.
* @returns {boolean}
*/
export function isScreenAudioShared(state: Object) {
return state['features/screen-share'].isSharingAudio;
}
/**
* Returns the visibility of the audio only screen share button. Currently electron on mac os doesn't
* have support for this functionality.
*
* @returns {boolean}
*/
export function isScreenAudioSupported() {
return !(browser.isElectron() && isMacOS());
}