|
|
@@ -53,6 +53,8 @@ The ```options``` parameter is JS object with the following properties:
|
|
53
|
53
|
|
|
54
|
54
|
* ```JitsiMeetJS.JitsiConnection``` - the ```JitsiConnection``` constructor. You can use that to create new server connection.
|
|
55
|
55
|
|
|
|
56
|
+* ```JitsiMeetJS.JitsiTrackError``` - the ```JitsiTrackError``` constructor. You can use that to check ```instanceof``` errors you get from ```JitsiMeetJS.createLocalTracks()``` method.
|
|
|
57
|
+
|
|
56
|
58
|
* ```JitsiMeetJS.setLogLevel``` - changes the log level for the library. For example to have only error messages you should do:
|
|
57
|
59
|
```
|
|
58
|
60
|
JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR);
|
|
|
@@ -88,6 +90,26 @@ JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR);
|
|
88
|
90
|
- ```addEventListener(event, handler)``` - attaches an event handler.
|
|
89
|
91
|
- ```removeEventListener(event, handler)``` - removes an event handler.
|
|
90
|
92
|
|
|
|
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.
|
|
91
|
113
|
|
|
92
|
114
|
* ```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.
|
|
93
|
115
|
We have two event types - connection and conference. You can access the events with the following code ```JitsiMeetJS.events.<event_type>.<event_name>```.
|