From 20bf6851c05a03bb5f85f571565dace6663ae40c Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 18 Feb 2024 01:16:57 +0100 Subject: [PATCH] Always use on media unsuported on error on android since errors code are unreliables --- front/packages/ui/src/player/video.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 }