mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Always use on media unsuported on error on android since errors code are unreliables
This commit is contained in:
parent
7adbb5d299
commit
20bf6851c0
@ -103,11 +103,7 @@ const Video = forwardRef<VideoRef, VideoProps>(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 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user