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.web.js 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. }
  39. /**
  40. * Handles changes to the `disableCrashReporting` setting.
  41. * Noop on web.
  42. *
  43. * @param {boolean} disabled - Whether crash reporting is disabled or not.
  44. * @returns {void}
  45. */
  46. export function handleCrashReportingChange(disabled: boolean) { // eslint-disable-line no-unused-vars
  47. }