From e54653e6dc6066ad28fc16264635e9ed4858bfcf Mon Sep 17 00:00:00 2001 From: bstassar Date: Tue, 2 Apr 2024 18:56:19 +0200 Subject: [PATCH] Added player settings (copied from appearance/player) to the "player" menu --- menu/skeleton-parts/player.js | 56 ++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/menu/skeleton-parts/player.js b/menu/skeleton-parts/player.js index aed1d406a..e00195dfa 100644 --- a/menu/skeleton-parts/player.js +++ b/menu/skeleton-parts/player.js @@ -1045,6 +1045,60 @@ extension.skeleton.main.layers.section.player.on.click = { value: true } }, + player_hide_controls_options: { + component: "button", + text: "hidePlayerControlsBarButtons", + on: { + click: { + component: "section", + variant: "card", + + player_play_button: { + component: "switch", + text: "playPause" + }, + player_previous_button: { + component: "switch", + text: "previousVideo" + }, + player_next_button: { + component: "switch", + text: "nextVideo" + }, + player_volume_button: { + component: "switch", + text: "volume" + }, + player_autoplay_button: { + component: "switch", + text: "autoplay" + }, + player_settings_button: { + component: "switch", + text: "settings" + }, + player_subtitles_button: { + component: "switch", + text: "subtitles" + }, + player_miniplayer_button: { + component: "switch", + text: "nativeMiniPlayer" + }, + player_view_button: { + component: "switch", + text: "viewMode" + }, + player_screen_button: { + component: "switch", + text: "screen" + }, + player_remote_button: { + component: "switch", + text: "remote" + } + } + } + }, } - };