mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
Don't rerun error if hls already tried
This commit is contained in:
parent
fea09b51a8
commit
fd89b3c0ed
@ -181,6 +181,7 @@ export default function HlsVideoPlayer({
|
||||
onEnded={onClipEnded}
|
||||
onError={(e) => {
|
||||
if (
|
||||
!hlsRef.current &&
|
||||
// @ts-expect-error code does exist
|
||||
e.target.error.code == MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED &&
|
||||
videoRef.current
|
||||
|
||||
Loading…
Reference in New Issue
Block a user