From 795671d66070a367a74e454e231d51b3241d517c Mon Sep 17 00:00:00 2001 From: Ole Wieners Date: Fri, 3 Nov 2023 12:08:12 +0100 Subject: [PATCH] Retain volume setting across all videos --- frontend/src/ui/player/Paella.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/frontend/src/ui/player/Paella.tsx b/frontend/src/ui/player/Paella.tsx index 786d1db49..bd47ead44 100644 --- a/frontend/src/ui/player/Paella.tsx +++ b/frontend/src/ui/player/Paella.tsx @@ -224,6 +224,19 @@ const PAELLA_CONFIG = { hideOnMouseLeave: true, }, + preferences: { + currentSource: "dataPlugin", + sources: { + dataPlugin: { + context: "preferences", + }, + }, + }, + + videoContainer: { + restoreVolume: true, + }, + plugins: { "es.upv.paella.singleVideoDynamic": { enabled: true, @@ -384,6 +397,13 @@ const PAELLA_CONFIG = { order: 9, tabIndex: 9, }, + + // Data plugin + "es.upv.paella.localStorageDataPlugin": { + "enabled": true, + "order": 0, + "context": ["default", "trimming"], + }, }, };