Browse Source

fix(lib-jitsi-meet): RTCBrowserType -> browser.

master
hristoterezov 7 years ago
parent
commit
c9e3e5052d

+ 1
- 1
config.js View File

@@ -94,7 +94,7 @@ var config = {
94 94
 
95 95
     // w3c spec-compliant video constraints to use for video capture. Currently
96 96
     // used by browsers that return true from lib-jitsi-meet's
97
-    // RTCBrowserType#usesNewGumFlow. The constraints are independency from
97
+    // util#browser#usesNewGumFlow. The constraints are independency from
98 98
     // this config's resolution value. Defaults to requesting an ideal aspect
99 99
     // ratio of 16:9 with an ideal resolution of 1080p.
100 100
     // constraints: {

+ 1
- 1
package-lock.json View File

@@ -7158,7 +7158,7 @@
7158 7158
       }
7159 7159
     },
7160 7160
     "lib-jitsi-meet": {
7161
-      "version": "github:jitsi/lib-jitsi-meet#baa5d9b9973db66006aab260808ee445f01d326f",
7161
+      "version": "github:jitsi/lib-jitsi-meet#44d2c7ba21af56834034438c68977a5e6af7c317",
7162 7162
       "requires": {
7163 7163
         "async": "0.9.0",
7164 7164
         "current-executing-script": "0.1.3",

+ 1
- 1
package.json View File

@@ -44,7 +44,7 @@
44 44
     "jquery-i18next": "1.2.0",
45 45
     "js-md5": "0.6.1",
46 46
     "jwt-decode": "2.2.0",
47
-    "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#baa5d9b9973db66006aab260808ee445f01d326f",
47
+    "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#44d2c7ba21af56834034438c68977a5e6af7c317",
48 48
     "lodash": "4.17.4",
49 49
     "moment": "2.19.4",
50 50
     "nuclear-js": "1.4.0",

+ 1
- 1
react/features/base/lib-jitsi-meet/index.js View File

@@ -7,7 +7,7 @@ export { JitsiMeetJS as default };
7 7
 // undefined imported JitsiMeetJS. It may be caused by import cycles but I have
8 8
 // not confirmed the theory.
9 9
 export const analytics = JitsiMeetJS.analytics;
10
-export const RTCBrowserType = JitsiMeetJS.util.RTCBrowserType;
10
+export const browser = JitsiMeetJS.util.browser;
11 11
 export const JitsiConferenceErrors = JitsiMeetJS.errors.conference;
12 12
 export const JitsiConferenceEvents = JitsiMeetJS.events.conference;
13 13
 export const JitsiConnectionErrors = JitsiMeetJS.errors.connection;

+ 1
- 1
react/features/base/lib-jitsi-meet/native/polyfills-browser.js View File

@@ -310,7 +310,7 @@ function _visitNode(node, callback) {
310 310
         //
311 311
         // Required by:
312 312
         // - lib-jitsi-meet/modules/RTC/adapter.screenshare.js
313
-        // - lib-jitsi-meet/modules/RTC/RTCBrowserType.js
313
+        // - lib-jitsi-meet/modules/browser/BrowserDetection.js
314 314
         let userAgent = navigator.userAgent || '';
315 315
 
316 316
         // react-native/version

+ 6
- 6
react/features/conference/functions.js View File

@@ -1,6 +1,6 @@
1 1
 import { getName } from '../app';
2 2
 import { translateToHTML } from '../base/i18n';
3
-import { RTCBrowserType } from '../base/lib-jitsi-meet';
3
+import { browser } from '../base/lib-jitsi-meet';
4 4
 import { showWarningNotification } from '../notifications';
5 5
 
6 6
 /**
@@ -11,15 +11,15 @@ import { showWarningNotification } from '../notifications';
11 11
  * @returns {void}
12 12
  */
13 13
 export function maybeShowSuboptimalExperienceNotification(dispatch, t) {
14
-    if (!RTCBrowserType.isChrome()
15
-            && !RTCBrowserType.isFirefox()
16
-            && !RTCBrowserType.isNWJS()
17
-            && !RTCBrowserType.isElectron()
14
+    if (!browser.isChrome()
15
+            && !browser.isFirefox()
16
+            && !browser.isNWJS()
17
+            && !browser.isElectron()
18 18
 
19 19
             // Adding react native to the list of recommended browsers is not
20 20
             // necessary for now because the function won't be executed at all
21 21
             // in this case but I'm adding it for completeness.
22
-            && !RTCBrowserType.isReactNative()
22
+            && !browser.isReactNative()
23 23
     ) {
24 24
         dispatch(
25 25
             showWarningNotification(

Loading…
Cancel
Save