Allow fullscreen in iframe

This commit is contained in:
Sam Potts
2018-03-27 21:13:22 +11:00
parent 1a032ea498
commit d96957d086
15 changed files with 1867 additions and 1098 deletions

View File

@ -117,9 +117,12 @@ class Fullscreen {
// Determine if fullscreen is enabled
get enabled() {
const fallback = this.player.config.fullscreen.fallback && !utils.inFrame();
return (Fullscreen.native || fallback) && this.player.config.fullscreen.enabled && this.player.supported.ui && this.player.isVideo;
return (
(Fullscreen.native || this.player.config.fullscreen.fallback) &&
this.player.config.fullscreen.enabled &&
this.player.supported.ui &&
this.player.isVideo
);
}
// Get active state