From 5453881ea1f770f09a06013ea44f24a5456b2326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20F=C3=A4th?= Date: Wed, 20 Nov 2019 14:29:10 +0100 Subject: [PATCH 01/12] Send text and messages via remote control The needed logic to show/hide the section where needed is already there: https://github.com/jellyfin/jellyfin-web/blob/3419230e891f79128b26db1cad8f307addd3c05e/src/components/remotecontrol/remotecontrol.js#L206 --- src/nowplaying.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nowplaying.html b/src/nowplaying.html index fa8ade166..575725cd6 100644 --- a/src/nowplaying.html +++ b/src/nowplaying.html @@ -124,7 +124,7 @@ -
+

${HeaderSendMessage}

@@ -173,4 +173,4 @@

-
\ No newline at end of file +
From f1cce1ad7689d7f5972e0791797d1dd3e7f737e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20F=C3=A4th?= Date: Wed, 20 Nov 2019 14:46:03 +0100 Subject: [PATCH 02/12] Hides message section during local playback of music --- src/components/playback/playbackmanager.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/playback/playbackmanager.js b/src/components/playback/playbackmanager.js index 13497e191..404f5f464 100644 --- a/src/components/playback/playbackmanager.js +++ b/src/components/playback/playbackmanager.js @@ -3860,7 +3860,6 @@ define(['events', 'datetime', 'appSettings', 'itemHelper', 'pluginManager', 'pla "SetMaxStreamingBitrate", "DisplayContent", "GoToSearch", - "DisplayMessage", "SetRepeatMode", "PlayMediaSource", "PlayTrailers" From e05e635b44663a32c0ffda8d8bc499d23d629d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20F=C3=A4th?= Date: Wed, 20 Nov 2019 18:01:58 +0100 Subject: [PATCH 03/12] Show/Hide Buttons --- src/components/remotecontrol/remotecontrol.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/components/remotecontrol/remotecontrol.js b/src/components/remotecontrol/remotecontrol.js index e586a1e12..f361c05b6 100644 --- a/src/components/remotecontrol/remotecontrol.js +++ b/src/components/remotecontrol/remotecontrol.js @@ -215,6 +215,17 @@ define(["browser", "datetime", "backdrop", "libraryBrowser", "listView", "imageL context.querySelector(".sendTextSection").classList.add("hide"); } + buttonVisible(context.querySelector(".btnArrowUp"), -1 != supportedCommands.indexOf("MoveUp")); + buttonVisible(context.querySelector(".btnArrowLeft"), -1 != supportedCommands.indexOf("MoveDown")); + buttonVisible(context.querySelector(".btnArrowRight"), -1 != supportedCommands.indexOf("MoveRight")); + buttonVisible(context.querySelector(".btnArrowDown"), -1 != supportedCommands.indexOf("MoveLeft")); + buttonVisible(context.querySelector(".btnOk"), -1 != supportedCommands.indexOf("Select")); + buttonVisible(context.querySelector(".btnBack"), -1 != supportedCommands.indexOf("Back")); + buttonVisible(context.querySelector(".btnInfo"), -1 != supportedCommands.indexOf("ToggleOsd")); + buttonVisible(context.querySelector(".btnShowSearch"), -1 != supportedCommands.indexOf("GoToSearch")); + buttonVisible(context.querySelector(".bthShowSettings"), -1 != supportedCommands.indexOf("GoToSettings")); + buttonVisible(context.querySelector(".btnGoHome"), -1 != supportedCommands.indexOf("GoHome")); + buttonVisible(context.querySelector(".btnStop"), null != item); buttonVisible(context.querySelector(".btnNextTrack"), null != item); buttonVisible(context.querySelector(".btnPreviousTrack"), null != item); From 3a6275a05c69c506739313e102e4c7a21178a618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20F=C3=A4th?= Date: Wed, 20 Nov 2019 18:02:32 +0100 Subject: [PATCH 04/12] Center Buttons --- src/components/remotecontrol/remotecontrol.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/remotecontrol/remotecontrol.css b/src/components/remotecontrol/remotecontrol.css index 5d375d01d..0b6a2dbbc 100644 --- a/src/components/remotecontrol/remotecontrol.css +++ b/src/components/remotecontrol/remotecontrol.css @@ -8,6 +8,10 @@ flex-direction: row } +.navigationSection { + text-align: center +} + .nowPlayingPageTitle { margin: 0 0 .5em .5em } From 16feba6dff976d251f8f6ba763733657202ef52c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20F=C3=A4th?= Date: Wed, 20 Nov 2019 18:03:55 +0100 Subject: [PATCH 05/12] Move Button --- src/nowplaying.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/nowplaying.html b/src/nowplaying.html index 575725cd6..e931916b4 100644 --- a/src/nowplaying.html +++ b/src/nowplaying.html @@ -75,7 +75,7 @@
-
+