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

This commit is contained in:
hristoterezov 2018-01-19 11:50:03 -06:00
parent 98ff20a026
commit c9e3e5052d
6 changed files with 11 additions and 11 deletions

View File

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

2
package-lock.json generated
View File

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

View File

@ -44,7 +44,7 @@
"jquery-i18next": "1.2.0", "jquery-i18next": "1.2.0",
"js-md5": "0.6.1", "js-md5": "0.6.1",
"jwt-decode": "2.2.0", "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", "lodash": "4.17.4",
"moment": "2.19.4", "moment": "2.19.4",
"nuclear-js": "1.4.0", "nuclear-js": "1.4.0",

View File

@ -7,7 +7,7 @@ export { JitsiMeetJS as default };
// undefined imported JitsiMeetJS. It may be caused by import cycles but I have // undefined imported JitsiMeetJS. It may be caused by import cycles but I have
// not confirmed the theory. // not confirmed the theory.
export const analytics = JitsiMeetJS.analytics; 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 JitsiConferenceErrors = JitsiMeetJS.errors.conference;
export const JitsiConferenceEvents = JitsiMeetJS.events.conference; export const JitsiConferenceEvents = JitsiMeetJS.events.conference;
export const JitsiConnectionErrors = JitsiMeetJS.errors.connection; export const JitsiConnectionErrors = JitsiMeetJS.errors.connection;

View File

@ -310,7 +310,7 @@ function _visitNode(node, callback) {
// //
// Required by: // Required by:
// - lib-jitsi-meet/modules/RTC/adapter.screenshare.js // - 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 || ''; let userAgent = navigator.userAgent || '';
// react-native/version // react-native/version

View File

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