Fix an issue with Screenfull on iOS

This commit is contained in:
MrTimscampi 2020-04-26 16:07:07 +02:00
parent 73d39fe055
commit eb6f70240a

View File

@ -20,9 +20,11 @@ define(['events', 'datetime', 'appSettings', 'itemHelper', 'pluginManager', 'pla
} }
function bindToFullscreenChange(player) { function bindToFullscreenChange(player) {
screenfull.on('change', function () { if (screenfull.isEnabled) {
events.trigger(player, 'fullscreenchange'); screenfull.on('change', function () {
}); events.trigger(player, 'fullscreenchange');
});
}
} }
function triggerPlayerChange(playbackManagerInstance, newPlayer, newTarget, previousPlayer, previousTargetInfo) { function triggerPlayerChange(playbackManagerInstance, newPlayer, newTarget, previousPlayer, previousTargetInfo) {