您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

functions.web.js 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // @flow
  2. export * from './functions.any';
  3. /**
  4. * Returns the deviceId for the currently used camera.
  5. *
  6. * @param {Object} state - The state of the application.
  7. * @returns {void}
  8. */
  9. export function getCurrentCameraDeviceId(state: Object) {
  10. return state['features/base/settings'].cameraDeviceId;
  11. }
  12. /**
  13. * Returns the deviceId for the currently used microphone.
  14. *
  15. * @param {Object} state - The state of the application.
  16. * @returns {void}
  17. */
  18. export function getCurrentMicDeviceId(state: Object) {
  19. return state['features/base/settings'].micDeviceId;
  20. }
  21. /**
  22. * Returns the deviceId for the currently used speaker.
  23. *
  24. * @param {Object} state - The state of the application.
  25. * @returns {void}
  26. */
  27. export function getCurrentOutputDeviceId(state: Object) {
  28. return state['features/base/settings'].audioOutputDeviceId;
  29. }
  30. /**
  31. * Handles changes to the `disableCallIntegration` setting.
  32. * Noop on web.
  33. *
  34. * @param {boolean} disabled - Whether call integration is disabled or not.
  35. * @returns {void}
  36. */
  37. export function handleCallIntegrationChange(disabled: boolean) { // eslint-disable-line no-unused-vars
  38. }