I want to simply play a video in iOS and android and using react-native-video for the same. But intermittently, the video does not play, on both android and iOS. I just see a blank video.
Error on iOS:
code: -11850
domain: "AVFoundationErrorDomain"
localizedDescription: "Operation Stopped"
localizedFailureReason: "The server is not correctly configured."
localizedRecoverySuggestion: ""
Error on android:
extra: -2147483648
what: 1
I did see a lot of these issues opened by others on github, but no solutions.
Any help to resolve this would be great.
Are there any good alternatives to react-native-video?
<Video
ref={videoRef}
source={{ uri: 'https://www.w3schools.com/html/mov_bbb.mp4', type: 'mp4' }}
style={styles.video}
resizeMode="cover"
paused={props.paused}
muted={muted}
repeat
onLoad={handleLoad}
onProgress={handleProgress}
playInBackground={false}
onError={videoError}
/>
Using Video as shown above.
TIA.