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

This commit is contained in:
Jaya Allamsetty 2021-03-08 10:47:58 -05:00 committed by Jaya Allamsetty
parent 572beb8382
commit 0ee03f1538
4 changed files with 4 additions and 4 deletions

View File

@ -610,7 +610,7 @@ export class VideoContainer extends LargeContainer {
// explicitly disabled.
if (interfaceConfig.DISABLE_VIDEO_BACKGROUND
|| browser.isFirefox()
|| browser.isSafari()) {
|| browser.isWebKitBased()) {
return;
}

View File

@ -92,7 +92,7 @@ export function isSupportedBrowser() {
export function isSupportedMobileBrowser() {
return (Platform.OS === 'android' && browser.isChromiumBased())
|| (Platform.OS === 'android' && browser.isFirefox())
|| (Platform.OS === 'ios' && browser.isSafari());
|| (Platform.OS === 'ios' && browser.isWebKitBased());
}
/**

View File

@ -24,7 +24,7 @@ function onFakeLocalStorageChanged() {
* @returns {void}
*/
function setupJitsiLocalStorage() {
if (jitsiLocalStorage.isLocalStorageDisabled() || browser.isSafari()) {
if (jitsiLocalStorage.isLocalStorageDisabled() || browser.isWebKitBased()) {
const urlParams = parseURLParams(window.location);
try {

View File

@ -172,7 +172,7 @@ class AudioSettingsContent extends Component<Props, State> {
* @returns {void}
*/
async _setTracks() {
if (browser.isSafari()) {
if (browser.isWebKitBased()) {
// It appears that at the time of this writing, creating audio tracks blocks the browser's main thread for
// long time on safari. Wasn't able to confirm which part of track creation does the blocking exactly, but