forked from pip25/lib-jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JitsiMediaDevicesEvents.js
34 lines (30 loc) · 1.19 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
28
29
30
31
32
33
34
/**
* The events for the media devices.
*/
/**
* 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
*/
export const DEVICE_LIST_CHANGED = 'mediaDevices.devicechange';
/**
* Event emitted when the user granted/blocked a permission for the camera / mic.
* Used to keep track of the granted permissions on browsers which don't
* support the Permissions API.
*/
export const PERMISSIONS_CHANGED = 'rtc.permissions_changed';
/**
* 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'|'safari'|'nwjs'
* |'react-native'|'android'} environmentType - type of browser or
* other execution environment.
*/
export const PERMISSION_PROMPT_IS_SHOWN
= 'mediaDevices.permissionPromptIsShown';
export const SLOW_GET_USER_MEDIA = 'mediaDevices.slowGetUserMedia';