Browse Source

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

master
hristoterezov 7 years ago
parent
commit
c9e3e5052d

+ 1
- 1
config.js View File

94
 
94
 
95
     // w3c spec-compliant video constraints to use for video capture. Currently
95
     // w3c spec-compliant video constraints to use for video capture. Currently
96
     // used by browsers that return true from lib-jitsi-meet's
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
     // this config's resolution value. Defaults to requesting an ideal aspect
98
     // this config's resolution value. Defaults to requesting an ideal aspect
99
     // ratio of 16:9 with an ideal resolution of 1080p.
99
     // ratio of 16:9 with an ideal resolution of 1080p.
100
     // constraints: {
100
     // constraints: {

+ 1
- 1
package-lock.json View File

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

+ 1
- 1
package.json View File

44
     "jquery-i18next": "1.2.0",
44
     "jquery-i18next": "1.2.0",
45
     "js-md5": "0.6.1",
45
     "js-md5": "0.6.1",
46
     "jwt-decode": "2.2.0",
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
     "lodash": "4.17.4",
48
     "lodash": "4.17.4",
49
     "moment": "2.19.4",
49
     "moment": "2.19.4",
50
     "nuclear-js": "1.4.0",
50
     "nuclear-js": "1.4.0",

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

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

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

310
         //
310
         //
311
         // Required by:
311
         // Required by:
312
         // - lib-jitsi-meet/modules/RTC/adapter.screenshare.js
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
         let userAgent = navigator.userAgent || '';
314
         let userAgent = navigator.userAgent || '';
315
 
315
 
316
         // react-native/version
316
         // react-native/version

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

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

Loading…
Cancel
Save