From 2e8d41d997f5d6c38d3a86527fdf7bf64328869d Mon Sep 17 00:00:00 2001 From: Korbs Date: Sat, 30 Nov 2024 23:23:44 -0500 Subject: [PATCH] Add Subtitles option to Player --- src/Player.astro | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/Player.astro b/src/Player.astro index dd4ac1f..d1fd14c 100644 --- a/src/Player.astro +++ b/src/Player.astro @@ -10,6 +10,7 @@ const { Audio, VideoAttributes, AudioAttributes, + Subtitles, ShowBackAndForward, BigPlayButton = false, @@ -35,6 +36,7 @@ import Controls from './Controls.astro' import MilieuEffect from './Features/Milieu.astro' import Controller from './Controls/Controller.astro' import Seek from './Controls/Seek.astro' +import SubtitlesMenu from './Controls/Subtitles.astro' import Sync from './Controls/Sync.astro' // YouTube @@ -57,7 +59,9 @@ import './Styles/Iconoir.css' ---
- + {Audio ? : null } {Audio ? : null } {Milieu ? @@ -77,8 +81,8 @@ import './Styles/Iconoir.css' null } {SettingsMenu ? - - + +
{Whitelabel ? Zorn Player : null} @@ -86,7 +90,7 @@ import './Styles/Iconoir.css' : - + } @@ -105,4 +109,10 @@ import './Styles/Iconoir.css' var VolumeRange = document.querySelector('#zorn-player-' + PlayerName + ' .vc-volume-controller-input input') VolumeRange.addEventListener("input", (event) => {Player.volume = event.target.value}) +} + +{Subtitles ? + + : + null } \ No newline at end of file