|
|
@@ -107,17 +107,6 @@ const RTCBrowserType = {
|
|
107
|
107
|
return currentBrowser === RTCBrowserType.RTC_BROWSER_SAFARI;
|
|
108
|
108
|
},
|
|
109
|
109
|
|
|
110
|
|
- /**
|
|
111
|
|
- * Checks if the current client supports Simulcast.
|
|
112
|
|
- * @return {boolean} <tt>true</tt> if Simulcast is supported or
|
|
113
|
|
- * <tt>false</tt> otherwise.
|
|
114
|
|
- */
|
|
115
|
|
- isSimulcastSupported() {
|
|
116
|
|
- // Possibly it could work with anything that uses "official" WebRTC
|
|
117
|
|
- // stack, but only Chrome was tested.
|
|
118
|
|
- return RTCBrowserType.isChrome();
|
|
119
|
|
- },
|
|
120
|
|
-
|
|
121
|
110
|
/**
|
|
122
|
111
|
* Checks if current environment is NWJS.
|
|
123
|
112
|
* @returns {boolean}
|
|
|
@@ -223,10 +212,9 @@ const RTCBrowserType = {
|
|
223
|
212
|
* @returns {boolean}
|
|
224
|
213
|
*/
|
|
225
|
214
|
supportsSimulcast() {
|
|
226
|
|
- // This mirrors what sdp-simulcast uses (which is used when deciding
|
|
227
|
|
- // whether to actually enable simulcast or not).
|
|
228
|
|
- // TODO: the logic should be in one single place.
|
|
229
|
|
- return window.chrome !== undefined;
|
|
|
215
|
+ return RTCBrowserType.isChrome()
|
|
|
216
|
+ || RTCBrowserType.isElectron()
|
|
|
217
|
+ || RTCBrowserType.isNWJS();
|
|
230
|
218
|
},
|
|
231
|
219
|
|
|
232
|
220
|
supportsRtx() {
|