|
@@ -1,27 +1,24 @@
|
1
|
1
|
/**
|
2
|
|
- * Enumeration with the events for the media devices.
|
3
|
|
- * @type {{string: string}}
|
|
2
|
+ * The events for the media devices.
|
4
|
3
|
*/
|
5
|
|
-var JitsiMediaDevicesEvents = {
|
6
|
|
- /**
|
7
|
|
- * Indicates that the list of available media devices has been changed. The
|
8
|
|
- * event provides the following parameters to its listeners:
|
9
|
|
- *
|
10
|
|
- * @param {MediaDeviceInfo[]} devices - array of MediaDeviceInfo or
|
11
|
|
- * MediaDeviceInfo-like objects that are currently connected.
|
12
|
|
- * @see https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo
|
13
|
|
- */
|
14
|
|
- DEVICE_LIST_CHANGED: "mediaDevices.devicechange",
|
15
|
|
- /**
|
16
|
|
- * Indicates that the environment is currently showing permission prompt to
|
17
|
|
- * access camera and/or microphone. The event provides the following
|
18
|
|
- * parameters to its listeners:
|
19
|
|
- *
|
20
|
|
- * @param {'chrome'|'opera'|'firefox'|'iexplorer'|'safari'|'nwjs'
|
21
|
|
- * |'react-native'|'android'} environmentType - type of browser or
|
22
|
|
- * other execution environment.
|
23
|
|
- */
|
24
|
|
- PERMISSION_PROMPT_IS_SHOWN: "mediaDevices.permissionPromptIsShown"
|
25
|
|
-};
|
26
|
4
|
|
27
|
|
-module.exports = JitsiMediaDevicesEvents;
|
|
5
|
+/**
|
|
6
|
+ * Indicates that the list of available media devices has been changed. The
|
|
7
|
+ * event provides the following parameters to its listeners:
|
|
8
|
+ *
|
|
9
|
+ * @param {MediaDeviceInfo[]} devices - array of MediaDeviceInfo or
|
|
10
|
+ * MediaDeviceInfo-like objects that are currently connected.
|
|
11
|
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo
|
|
12
|
+ */
|
|
13
|
+export const DEVICE_LIST_CHANGED = "mediaDevices.devicechange";
|
|
14
|
+/**
|
|
15
|
+ * Indicates that the environment is currently showing permission prompt to
|
|
16
|
+ * access camera and/or microphone. The event provides the following
|
|
17
|
+ * parameters to its listeners:
|
|
18
|
+ *
|
|
19
|
+ * @param {'chrome'|'opera'|'firefox'|'iexplorer'|'safari'|'nwjs'
|
|
20
|
+ * |'react-native'|'android'} environmentType - type of browser or
|
|
21
|
+ * other execution environment.
|
|
22
|
+ */
|
|
23
|
+export const PERMISSION_PROMPT_IS_SHOWN
|
|
24
|
+ = "mediaDevices.permissionPromptIsShown";
|