123456789101112131415161718192021222324252627 |
- /**
- * Enumeration with the events for the media devices.
- * @type {{string: string}}
- */
- var JitsiMediaDevicesEvents = {
- /**
- * Indicates that the list of available media devices has been changed. The
- * event provides the following parameters to its listeners:
- *
- * @param {MediaDeviceInfo[]} devices - array of MediaDeviceInfo or
- * MediaDeviceInfo-like objects that are currently connected.
- * @see https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo
- */
- DEVICE_LIST_CHANGED: "mediaDevices.devicechange",
- /**
- * Indicates that the environment is currently showing permission prompt to
- * access camera and/or microphone. The event provides the following
- * parameters to its listeners:
- *
- * @param {'chrome'|'opera'|'firefox'|'iexplorer'|'safari'|'nwjs'
- * |'react-native'|'android'} environmentType - type of browser or
- * other execution environment.
- */
- PERMISSION_PROMPT_IS_SHOWN: "mediaDevices.permissionPromptIsShown"
- };
-
- module.exports = JitsiMediaDevicesEvents;
|