Skip to content

Commit 7e0ccec

Browse files
authored
fix(FEC-8360): no error for VR content on iPhone chrome with playsinline false (#5)
throw error for any browser on iPhone and playsinline:false
1 parent 5f0d594 commit 7e0ccec

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/vr.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,7 @@ class Vr extends BasePlugin {
146146
}
147147

148148
_isIOSPlayer(): boolean {
149-
return (
150-
this.player.config.playback.playsinline === false &&
151-
this.player.env.browser.name === 'Mobile Safari' &&
152-
this.player.env.device.type === 'mobile'
153-
);
149+
return this.player.config.playback.playsinline === false && this.player.env.device.model === 'iPhone';
154150
}
155151

156152
_isVrSupported(source: PKMediaSourceObject): boolean {

0 commit comments

Comments
 (0)