Browse Source

feat(browser-support): Add support for WKWebview based browsers.

j8
Jaya Allamsetty 4 years ago
parent
commit
0ee03f1538

+ 1
- 1
modules/UI/videolayout/VideoContainer.js View File

610
         // explicitly disabled.
610
         // explicitly disabled.
611
         if (interfaceConfig.DISABLE_VIDEO_BACKGROUND
611
         if (interfaceConfig.DISABLE_VIDEO_BACKGROUND
612
                 || browser.isFirefox()
612
                 || browser.isFirefox()
613
-                || browser.isSafari()) {
613
+                || browser.isWebKitBased()) {
614
             return;
614
             return;
615
         }
615
         }
616
 
616
 

+ 1
- 1
react/features/base/environment/environment.js View File

92
 export function isSupportedMobileBrowser() {
92
 export function isSupportedMobileBrowser() {
93
     return (Platform.OS === 'android' && browser.isChromiumBased())
93
     return (Platform.OS === 'android' && browser.isChromiumBased())
94
         || (Platform.OS === 'android' && browser.isFirefox())
94
         || (Platform.OS === 'android' && browser.isFirefox())
95
-        || (Platform.OS === 'ios' && browser.isSafari());
95
+        || (Platform.OS === 'ios' && browser.isWebKitBased());
96
 }
96
 }
97
 
97
 
98
 /**
98
 /**

+ 1
- 1
react/features/base/jitsi-local-storage/setup.web.js View File

24
  * @returns {void}
24
  * @returns {void}
25
  */
25
  */
26
 function setupJitsiLocalStorage() {
26
 function setupJitsiLocalStorage() {
27
-    if (jitsiLocalStorage.isLocalStorageDisabled() || browser.isSafari()) {
27
+    if (jitsiLocalStorage.isLocalStorageDisabled() || browser.isWebKitBased()) {
28
         const urlParams = parseURLParams(window.location);
28
         const urlParams = parseURLParams(window.location);
29
 
29
 
30
         try {
30
         try {

+ 1
- 1
react/features/settings/components/web/audio/AudioSettingsContent.js View File

172
      * @returns {void}
172
      * @returns {void}
173
      */
173
      */
174
     async _setTracks() {
174
     async _setTracks() {
175
-        if (browser.isSafari()) {
175
+        if (browser.isWebKitBased()) {
176
 
176
 
177
             // It appears that at the time of this writing, creating audio tracks blocks the browser's main thread for
177
             // It appears that at the time of this writing, creating audio tracks blocks the browser's main thread for
178
             // long time on safari. Wasn't able to confirm which part of track creation does the blocking exactly, but
178
             // long time on safari. Wasn't able to confirm which part of track creation does the blocking exactly, but

Loading…
Cancel
Save