diff --git a/openvidu-browser/src/OpenVidu/OpenVidu.ts b/openvidu-browser/src/OpenVidu/OpenVidu.ts index ed1f1313..fc5babb4 100644 --- a/openvidu-browser/src/OpenVidu/OpenVidu.ts +++ b/openvidu-browser/src/OpenVidu/OpenVidu.ts @@ -341,7 +341,7 @@ export class OpenVidu { const family = platform.os!!.family; const userAgent = !!platform.ua ? platform.ua : navigator.userAgent; - if (isIPhone || isIPhone) { + if (isIPhone || isIPad) { if(this.isIOSWithSafari(userAgent) || platform['isIonicIos']){ return 1; } @@ -1064,4 +1064,4 @@ export class OpenVidu { return /\b(\w*Apple\w*)\b/.test(navigator.vendor) && /\b(\w*Safari\w*)\b/.test(userAgent) && !/\b(\w*CriOS\w*)\b/.test(userAgent) && !/\b(\w*FxiOS\w*)\b/.test(userAgent); } -} \ No newline at end of file +}