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);
|
onLoad?.(info);
|
||||||
}}
|
}}
|
||||||
onBuffer={onBuffer}
|
onBuffer={onBuffer}
|
||||||
onError={(e) => {
|
onError={onMediaUnsupported}
|
||||||
// 24001 is codec error
|
|
||||||
if (e.error.errorCode === "24001") onMediaUnsupported?.();
|
|
||||||
else onError?.(e);
|
|
||||||
}}
|
|
||||||
selectedVideoTrack={
|
selectedVideoTrack={
|
||||||
video === -1
|
video === -1
|
||||||
? { type: SelectedVideoTrackType.AUDO }
|
? { type: SelectedVideoTrackType.AUDO }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user