react-native-video: Android not works
Video don’t play on android (api 19 and 23) with RN 0.29. White screen without any errors. onEnd fires before onLoad.
<Video rate={1} onEnd={console.log('onEnd)} resizeMode='contain' source={{uri:'http://192.168.1.102:88/videos/1468196289-7205687.mp4'}} onLoad={console.log('onLoad')}/>
UPD
Magically after posting issue (maybe after restarting simulator) I get error : { error: { extra: -2147483648, what: 1 } }
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 33 (11 by maintainers)
@mattapperson Where do I find the explanation for the error codes? I’m having problems playing a video on an old HTC device and an old Nexus simulator. I get:
error: { extra: -38, what: 1 }@mattapperson can we re-open this issue? This still seems to be the issue. The same video, when ran on iOS runs just fine. But on Android, it throws the error:
{ error: { extra: -2147483648, what: 1 } }The video I have been using was recorded and encoded in Snapchat. It’s using H.264 encoder and is about as nominal as it gets.
Why is this closed, it still seems this is an issue. I am not able to play the video. I am on Android 6, and using RN 0.47.1
I am getting error with the following shape:
My code: