diff --git a/front/packages/ui/src/player/video.tsx b/front/packages/ui/src/player/video.tsx index c8a137f6..598395c8 100644 --- a/front/packages/ui/src/player/video.tsx +++ b/front/packages/ui/src/player/video.tsx @@ -103,11 +103,7 @@ const Video = forwardRef(function Video( onLoad?.(info); }} onBuffer={onBuffer} - onError={(e) => { - // 24001 is codec error - if (e.error.errorCode === "24001") onMediaUnsupported?.(); - else onError?.(e); - }} + onError={onMediaUnsupported} selectedVideoTrack={ video === -1 ? { type: SelectedVideoTrackType.AUDO }