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}
|
onEnded={onClipEnded}
|
||||||
onError={(e) => {
|
onError={(e) => {
|
||||||
if (
|
if (
|
||||||
|
!hlsRef.current &&
|
||||||
// @ts-expect-error code does exist
|
// @ts-expect-error code does exist
|
||||||
e.target.error.code == MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED &&
|
e.target.error.code == MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED &&
|
||||||
videoRef.current
|
videoRef.current
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user