mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-05 17:51:36 +02:00
Adjust dependencies of hls video player to be stable
This commit is contained in:
parent
b86e6e484f
commit
b6833f1931
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user