fix(lib-jitsi-meet): RTCBrowserType -> browser.
This commit is contained in:
parent
98ff20a026
commit
c9e3e5052d
|
@ -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: {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue