You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

functions.js 609B

12345678910111213141516171819202122232425
  1. // @flow
  2. import { isMacOS } from '../base/environment';
  3. import { browser } from '../base/lib-jitsi-meet';
  4. /**
  5. * State of audio sharing.
  6. *
  7. * @param {Object} state - The state of the application.
  8. * @returns {boolean}
  9. */
  10. export function isScreenAudioShared(state: Object) {
  11. return state['features/screen-share'].isSharingAudio;
  12. }
  13. /**
  14. * Returns the visibility of the audio only screen share button. Currently electron on mac os doesn't
  15. * have support for this functionality.
  16. *
  17. * @returns {boolean}
  18. */
  19. export function isScreenAudioSupported() {
  20. return !(browser.isElectron() && isMacOS());
  21. }