diff --git a/config.js b/config.js index 0b0c63b97..5191f3b3a 100644 --- a/config.js +++ b/config.js @@ -94,7 +94,7 @@ var config = { // w3c spec-compliant video constraints to use for video capture. Currently // used by browsers that return true from lib-jitsi-meet's - // RTCBrowserType#usesNewGumFlow. The constraints are independency from + // util#browser#usesNewGumFlow. The constraints are independency from // this config's resolution value. Defaults to requesting an ideal aspect // ratio of 16:9 with an ideal resolution of 1080p. // constraints: { diff --git a/package-lock.json b/package-lock.json index c936e2bc5..676bb4e4b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7158,7 +7158,7 @@ } }, "lib-jitsi-meet": { - "version": "github:jitsi/lib-jitsi-meet#baa5d9b9973db66006aab260808ee445f01d326f", + "version": "github:jitsi/lib-jitsi-meet#44d2c7ba21af56834034438c68977a5e6af7c317", "requires": { "async": "0.9.0", "current-executing-script": "0.1.3", diff --git a/package.json b/package.json index c29cdd550..6229ab15d 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "jquery-i18next": "1.2.0", "js-md5": "0.6.1", "jwt-decode": "2.2.0", - "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#baa5d9b9973db66006aab260808ee445f01d326f", + "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#44d2c7ba21af56834034438c68977a5e6af7c317", "lodash": "4.17.4", "moment": "2.19.4", "nuclear-js": "1.4.0", diff --git a/react/features/base/lib-jitsi-meet/index.js b/react/features/base/lib-jitsi-meet/index.js index 5de86ed91..6ad4188c4 100644 --- a/react/features/base/lib-jitsi-meet/index.js +++ b/react/features/base/lib-jitsi-meet/index.js @@ -7,7 +7,7 @@ export { JitsiMeetJS as default }; // undefined imported JitsiMeetJS. It may be caused by import cycles but I have // not confirmed the theory. export const analytics = JitsiMeetJS.analytics; -export const RTCBrowserType = JitsiMeetJS.util.RTCBrowserType; +export const browser = JitsiMeetJS.util.browser; export const JitsiConferenceErrors = JitsiMeetJS.errors.conference; export const JitsiConferenceEvents = JitsiMeetJS.events.conference; export const JitsiConnectionErrors = JitsiMeetJS.errors.connection; diff --git a/react/features/base/lib-jitsi-meet/native/polyfills-browser.js b/react/features/base/lib-jitsi-meet/native/polyfills-browser.js index 349812015..bd7ca0ba8 100644 --- a/react/features/base/lib-jitsi-meet/native/polyfills-browser.js +++ b/react/features/base/lib-jitsi-meet/native/polyfills-browser.js @@ -310,7 +310,7 @@ function _visitNode(node, callback) { // // Required by: // - lib-jitsi-meet/modules/RTC/adapter.screenshare.js - // - lib-jitsi-meet/modules/RTC/RTCBrowserType.js + // - lib-jitsi-meet/modules/browser/BrowserDetection.js let userAgent = navigator.userAgent || ''; // react-native/version diff --git a/react/features/conference/functions.js b/react/features/conference/functions.js index b7134525b..deba440ed 100644 --- a/react/features/conference/functions.js +++ b/react/features/conference/functions.js @@ -1,6 +1,6 @@ import { getName } from '../app'; import { translateToHTML } from '../base/i18n'; -import { RTCBrowserType } from '../base/lib-jitsi-meet'; +import { browser } from '../base/lib-jitsi-meet'; import { showWarningNotification } from '../notifications'; /** @@ -11,15 +11,15 @@ import { showWarningNotification } from '../notifications'; * @returns {void} */ export function maybeShowSuboptimalExperienceNotification(dispatch, t) { - if (!RTCBrowserType.isChrome() - && !RTCBrowserType.isFirefox() - && !RTCBrowserType.isNWJS() - && !RTCBrowserType.isElectron() + if (!browser.isChrome() + && !browser.isFirefox() + && !browser.isNWJS() + && !browser.isElectron() // Adding react native to the list of recommended browsers is not // necessary for now because the function won't be executed at all // in this case but I'm adding it for completeness. - && !RTCBrowserType.isReactNative() + && !browser.isReactNative() ) { dispatch( showWarningNotification(