|
@@ -60,7 +60,7 @@ The ```options``` parameter is JS object with the following properties:
|
60
|
60
|
JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR);
|
61
|
61
|
```
|
62
|
62
|
|
63
|
|
-* ```JitsiMeetJS.createLocalTracks(options)``` - Creates the media tracks and returns them trough ```Promise``` object. If rejected, passes ```JitsiTrackError``` instance to catch block.
|
|
63
|
+* ```JitsiMeetJS.createLocalTracks(options, firePermissionPromptIsShownEvent)``` - Creates the media tracks and returns them trough ```Promise``` object. If rejected, passes ```JitsiTrackError``` instance to catch block.
|
64
|
64
|
- options - JS object with configuration options for the local media tracks. You can change the following properties there:
|
65
|
65
|
1. devices - array with the devices - "desktop", "video" and "audio" that will be passed to GUM. If that property is not set GUM will try to get all available devices.
|
66
|
66
|
2. resolution - the prefered resolution for the local video.
|
|
@@ -69,6 +69,7 @@ JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR);
|
69
|
69
|
5. minFps - the minimum frame rate for the video stream (passed to GUM)
|
70
|
70
|
6. maxFps - the maximum frame rate for the video stream (passed to GUM)
|
71
|
71
|
7. facingMode - facing mode for a camera (possible values - 'user', 'environment')
|
|
72
|
+ - firePermissionPromptIsShownEvent - optional boolean parameter. If set to ```true```, ```JitsiMediaDevicesEvents.PERMISSION_PROMPT_IS_SHOWN``` will be fired when browser shows gUM permission prompt.
|
72
|
73
|
|
73
|
74
|
* ```JitsiMeetJS.enumerateDevices(callback)``` - __DEPRECATED__. Use ```JitsiMeetJS.mediaDevices.enumerateDevices(callback)``` instead.
|
74
|
75
|
* ```JitsiMeetJS.isDeviceListAvailable()``` - __DEPRECATED__. Use ```JitsiMeetJS.mediaDevices.isDeviceListAvailable()``` instead.
|
|
@@ -90,27 +91,6 @@ JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR);
|
90
|
91
|
- ```addEventListener(event, handler)``` - attaches an event handler.
|
91
|
92
|
- ```removeEventListener(event, handler)``` - removes an event handler.
|
92
|
93
|
|
93
|
|
-* ```JitsiMeetJS.environment``` - environment detection helper. Provides following methods and properties:
|
94
|
|
- - ```RTC_BROWSER_CHROME```
|
95
|
|
- - ```RTC_BROWSER_OPERA```
|
96
|
|
- - ```RTC_BROWSER_FIREFOX```
|
97
|
|
- - ```RTC_BROWSER_IEXPLORER```
|
98
|
|
- - ```RTC_BROWSER_SAFARI```
|
99
|
|
- - ```RTC_BROWSER_NWJS```
|
100
|
|
- - ```RTC_BROWSER_REACT_NATIVE```
|
101
|
|
- - ```getBrowserType()``` - gets current browser type.
|
102
|
|
- - ```isChrome()``` - checks if current browser is Chrome.
|
103
|
|
- - ```isOpera()``` - checks if current browser is Opera.
|
104
|
|
- - ```isFirefox()``` - checks if current browser is Firefox.
|
105
|
|
- - ```isIExplorer()``` - checks if current browser is Internet Explorer.
|
106
|
|
- - ```isSafari()``` - checks if current browser is Safari.
|
107
|
|
- - ```isNWJS()``` - checks if current environment is NWJS.
|
108
|
|
- - ```isReactNative()``` - checks if current environment is React Native.
|
109
|
|
- - ```isTemasysPluginUsed()``` - checks if Temasys RTC plugin is used.
|
110
|
|
- - ```getFirefoxVersion()``` - returns Firefox version.
|
111
|
|
- - ```getChromeVersion()``` - returns Chrome version.
|
112
|
|
- - ```isAndroid()``` - checks whether the browser is running on an android device.
|
113
|
|
-
|
114
|
94
|
* ```JitsiMeetJS.events``` - JS object that contains all events used by the API. You will need that JS object when you try to subscribe for connection or conference events.
|
115
|
95
|
We have two event types - connection and conference. You can access the events with the following code ```JitsiMeetJS.events.<event_type>.<event_name>```.
|
116
|
96
|
For example if you want to use the conference event that is fired when somebody leave conference you can use the following code - ```JitsiMeetJS.events.conference.USER_LEFT```.
|
|
@@ -154,6 +134,7 @@ JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR);
|
154
|
134
|
|
155
|
135
|
4. mediaDevices
|
156
|
136
|
- DEVICE_LIST_CHANGED - indicates that list of currently connected devices has changed (parameters - devices(MediaDeviceInfo[])).
|
|
137
|
+ - PERMISSION_PROMPT_IS_SHOWN - Indicates that the environment is currently showing permission prompt to access camera and/or microphone (parameters - environmentType ('chrome'|'opera'|'firefox'|'iexplorer'|'safari'|'nwjs'|'react-native'|'android').
|
157
|
138
|
|
158
|
139
|
|
159
|
140
|
* ```JitsiMeetJS.errors``` - JS object that contains all errors used by the API. You can use that object to check the reported errors from the API
|