Fullscreen fix

This commit is contained in:
Sam Potts
2017-10-08 19:12:25 +11:00
parent 18a5edef0e
commit 3238b6a36a
2 changed files with 42 additions and 38 deletions

View File

@ -315,6 +315,7 @@
},
fullscreen: {
enabled: 'plyr--fullscreen-enabled',
fallback: 'plyr--fullscreen-fallback',
active: 'plyr--fullscreen-active',
},
pip: {
@ -2338,6 +2339,11 @@
if (nativeSupport || (player.config.fullscreen.fallback && !utils.inFrame())) {
log((nativeSupport ? 'Native' : 'Fallback') + ' fullscreen enabled');
// Add styling hook
if (!nativeSupport) {
utils.toggleClass(player.elements.container, player.config.classes.fullscreen.fallback, true);
}
// Add styling hook
utils.toggleClass(player.elements.container, player.config.classNames.fullscreen.enabled, true);
} else {