diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 229a2acbd..ceee8b8be 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -45,6 +45,7 @@ - [Camc314](https://github.com/camc314) - [danieladov](https://github.com/danieladov) - [Stephane Senart](https://github.com/ssenart) + - [imchasingshadows](https://github.com/imchasingshadows) # Emby Contributors diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index 7b3afb635..c6e9eed54 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -1369,12 +1369,17 @@ function tryRemoveElement(elem) { document.body.classList.add('hide-scroll'); } - // don't animate on smart tv's, too slow - if (options.fullscreen && browser.supportsCssAnimation() && !browser.slow) { - return zoomIn(dlg).then(function () { - return videoElement; - }); - } else { + if (options.fullscreen) { + if (browser.tv && Screenfull.isEnabled) { + Screenfull.request(); + } + // don't animate on smart tv's, too slow + if (!browser.slow && browser.supportsCssAnimation()) { + return zoomIn(dlg).then(function () { + return videoElement; + }); + } + return videoElement; } });