forked from jitsi/lib-jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JitsiMediaDevicesEvents.js
27 lines (26 loc) · 1.05 KB
/
JitsiMediaDevicesEvents.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* 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;