diff --git a/lib/player.js b/lib/player.js index 64ea205503..d89ded3b11 100644 --- a/lib/player.js +++ b/lib/player.js @@ -2985,6 +2985,17 @@ shaka.Player = class extends shaka.util.FakeEventTarget { 'webkitcurrentplaybacktargetiswirelesschanged', () => setHiddenMode()); } + const video = /** @type {HTMLVideoElement} */(mediaElement); + if (video.webkitSupportsFullscreen) { + this.loadEventManager_.listen(video, 'webkitpresentationmodechanged', + () => { + if (video.webkitPresentationMode != 'inline') { + setShowingMode(); + } else { + setHiddenMode(); + } + }); + } } // Add all media element listeners. this.addBasicMediaListeners_(mediaElement, startTimeOfLoad);