mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
feat: automatically fullscreen player on televisions
This commit is contained in:
parent
6e52a53e3d
commit
d06979fbe1
2 changed files with 12 additions and 6 deletions
|
@ -45,6 +45,7 @@
|
||||||
- [Camc314](https://github.com/camc314)
|
- [Camc314](https://github.com/camc314)
|
||||||
- [danieladov](https://github.com/danieladov)
|
- [danieladov](https://github.com/danieladov)
|
||||||
- [Stephane Senart](https://github.com/ssenart)
|
- [Stephane Senart](https://github.com/ssenart)
|
||||||
|
- [imchasingshadows](https://github.com/imchasingshadows)
|
||||||
|
|
||||||
# Emby Contributors
|
# Emby Contributors
|
||||||
|
|
||||||
|
|
|
@ -1369,12 +1369,17 @@ function tryRemoveElement(elem) {
|
||||||
document.body.classList.add('hide-scroll');
|
document.body.classList.add('hide-scroll');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options.fullscreen) {
|
||||||
|
if (browser.tv && Screenfull.isEnabled) {
|
||||||
|
Screenfull.request();
|
||||||
|
}
|
||||||
// don't animate on smart tv's, too slow
|
// don't animate on smart tv's, too slow
|
||||||
if (options.fullscreen && browser.supportsCssAnimation() && !browser.slow) {
|
if (!browser.slow && browser.supportsCssAnimation()) {
|
||||||
return zoomIn(dlg).then(function () {
|
return zoomIn(dlg).then(function () {
|
||||||
return videoElement;
|
return videoElement;
|
||||||
});
|
});
|
||||||
} else {
|
}
|
||||||
|
|
||||||
return videoElement;
|
return videoElement;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue