Fix video player flickering when changing watched state

This commit is contained in:
MerlinScheurer
2025-01-29 20:02:01 +01:00
parent 1c643bef8e
commit 4a67da12f7
3 changed files with 15 additions and 18 deletions

View File

@@ -162,6 +162,7 @@ const VideoPlayer = ({
<div id="player" className={embed ? '' : 'player-wrapper'}>
<div className={embed ? '' : 'video-main'}>
<video
key={`${getApiUrl()}${videoUrl}`}
poster={`${getApiUrl()}${videoThumbUrl}`}
onVolumeChange={(videoTag: VideoTag) => {
localStorage.setItem('playerVolume', videoTag.currentTarget.volume.toString());