diff --git a/static/player.ts b/static/player.ts index 17572b0..774076b 100644 --- a/static/player.ts +++ b/static/player.ts @@ -602,6 +602,7 @@ const initPlayer = (): void => { if (volumeRange) { const volumeValue = video.muted ? 0 : Math.round(video.volume * 100) volumeRange.value = String(volumeValue) + volumeRange.style.setProperty('--volume-percent', `${volumeValue}%`) } if (!video.muted && video.volume > 0) { lastKnownVolume = video.volume diff --git a/web/components/watch/video_player.templ b/web/components/watch/video_player.templ index 7eb6712..1ae55d4 100644 --- a/web/components/watch/video_player.templ +++ b/web/components/watch/video_player.templ @@ -118,9 +118,9 @@ templ VideoPlayer(data shared.WatchPageData) { >