Adjust dependencies of hls video player to be stable

This commit is contained in:
Sean Kelly 2025-09-01 11:29:35 -07:00
parent b86e6e484f
commit b6833f1931

View File

@ -138,7 +138,13 @@ export default function HlsVideoPlayer({
hlsRef.current.attachMedia(videoRef.current);
hlsRef.current.loadSource(currentSource.playlist);
videoRef.current.playbackRate = currentPlaybackRate;
}, [videoRef, hlsRef, useHlsCompat, currentSource]);
}, [
videoRef,
hlsRef,
useHlsCompat,
currentSource.playlist,
currentSource.startPosition,
]);
// state handling