mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
hide during local playback
This commit is contained in:
parent
347a0e1910
commit
092a8fd3e0
1 changed files with 8 additions and 2 deletions
|
@ -203,18 +203,24 @@ define(["browser", "datetime", "backdrop", "libraryBrowser", "listView", "imageL
|
||||||
updateAudioTracksDisplay(player, context);
|
updateAudioTracksDisplay(player, context);
|
||||||
updateSubtitleTracksDisplay(player, context);
|
updateSubtitleTracksDisplay(player, context);
|
||||||
|
|
||||||
if (-1 != supportedCommands.indexOf("DisplayMessage")) {
|
if (-1 != supportedCommands.indexOf("DisplayMessage") && !currentPlayer.isLocalPlayer) {
|
||||||
context.querySelector(".sendMessageSection").classList.remove("hide");
|
context.querySelector(".sendMessageSection").classList.remove("hide");
|
||||||
} else {
|
} else {
|
||||||
context.querySelector(".sendMessageSection").classList.add("hide");
|
context.querySelector(".sendMessageSection").classList.add("hide");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (-1 != supportedCommands.indexOf("SendString")) {
|
if (-1 != supportedCommands.indexOf("SendString") && !currentPlayer.isLocalPlayer) {
|
||||||
context.querySelector(".sendTextSection").classList.remove("hide");
|
context.querySelector(".sendTextSection").classList.remove("hide");
|
||||||
} else {
|
} else {
|
||||||
context.querySelector(".sendTextSection").classList.add("hide");
|
context.querySelector(".sendTextSection").classList.add("hide");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!currentPlayer.isLocalPlayer) {
|
||||||
|
context.querySelector(".navigationSection").classList.remove("hide");
|
||||||
|
} else {
|
||||||
|
context.querySelector(".navigationSection").classList.add("hide");
|
||||||
|
}
|
||||||
|
|
||||||
buttonVisible(context.querySelector(".btnArrowUp"), -1 != supportedCommands.indexOf("MoveUp"));
|
buttonVisible(context.querySelector(".btnArrowUp"), -1 != supportedCommands.indexOf("MoveUp"));
|
||||||
buttonVisible(context.querySelector(".btnArrowLeft"), -1 != supportedCommands.indexOf("MoveDown"));
|
buttonVisible(context.querySelector(".btnArrowLeft"), -1 != supportedCommands.indexOf("MoveDown"));
|
||||||
buttonVisible(context.querySelector(".btnArrowRight"), -1 != supportedCommands.indexOf("MoveRight"));
|
buttonVisible(context.querySelector(".btnArrowRight"), -1 != supportedCommands.indexOf("MoveRight"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue