From 40816e6a124aa51d638ed6d2548b31b437ea2180 Mon Sep 17 00:00:00 2001 From: Yiannis Christodoulou Date: Thu, 9 Oct 2025 13:51:24 +0300 Subject: [PATCH] Add centralized video player configuration file Introduces playerConfig.js to centralize video player customization options, including progress bar position and color settings. --- .../video-js/src/config/playerConfig.js | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 frontend-tools/video-js/src/config/playerConfig.js diff --git a/frontend-tools/video-js/src/config/playerConfig.js b/frontend-tools/video-js/src/config/playerConfig.js new file mode 100644 index 00000000..ad86ec9a --- /dev/null +++ b/frontend-tools/video-js/src/config/playerConfig.js @@ -0,0 +1,25 @@ +/** + * Video Player Configuration + * Centralized configuration for video player customizations + */ + +const PlayerConfig = { + // Progress bar configuration + progressBar: { + // Position: 'top' or 'bottom' + // 'top' - progress bar above control bar + // 'bottom' - progress bar below control bar (default/native style) + position: 'top', + + // Progress bar color (hex, rgb, or CSS color name) + color: '#019932', + + // Background color of the progress track + trackColor: 'rgba(255, 255, 255, 0.3)', + + // Loaded buffer color + bufferColor: 'rgba(255, 255, 255, 0.5)', + }, +}; + +export default PlayerConfig;