Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

functions.js 643B

12345678910111213141516171819202122232425
  1. // @flow
  2. import { isWindows } 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 only chrome browser and electron on
  15. * windows supports this functionality.
  16. *
  17. * @returns {boolean}
  18. */
  19. export function isScreenAudioSupported() {
  20. return browser.isChrome() || (browser.isElectron() && isWindows());
  21. }