mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Use TV layout by default on PS4
This commit is contained in:
parent
47552f3200
commit
1118f442f6
2 changed files with 1 additions and 5 deletions
|
@ -237,10 +237,6 @@ define(["appSettings", "browser", "events", "htmlMediaHelper", "webSettings"], f
|
||||||
features.push("voiceinput");
|
features.push("voiceinput");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!browser.tv && !browser.xboxOne) {
|
|
||||||
browser.ps4;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (supportsHtmlMediaAutoplay()) {
|
if (supportsHtmlMediaAutoplay()) {
|
||||||
features.push("htmlaudioautoplay");
|
features.push("htmlaudioautoplay");
|
||||||
features.push("htmlvideoautoplay");
|
features.push("htmlvideoautoplay");
|
||||||
|
|
|
@ -45,7 +45,7 @@ define(['browser', 'appSettings', 'events'], function (browser, appSettings, eve
|
||||||
// Take a guess at initial layout. The consuming app can override
|
// Take a guess at initial layout. The consuming app can override
|
||||||
if (browser.mobile) {
|
if (browser.mobile) {
|
||||||
this.setLayout('mobile', false);
|
this.setLayout('mobile', false);
|
||||||
} else if (browser.tv || browser.xboxOne) {
|
} else if (browser.tv || browser.xboxOne || browser.ps4) {
|
||||||
this.setLayout('tv', false);
|
this.setLayout('tv', false);
|
||||||
} else {
|
} else {
|
||||||
this.setLayout(this.defaultLayout || 'tv', false);
|
this.setLayout(this.defaultLayout || 'tv', false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue