react-native-video: Video stops playing when streamed from remote server
Hello,
I’m loading an mp4 from a remote server using the uri: syntax and the video with stop playing after about ~50%. The same video plays in it’s entirety if loaded locally using the require syntax.
I’m using the latest version or react-native and the latest version of react-native-video. I am building an app for android only.
The video is 13mb in size.
Any idea why this might be happening?
Thanks
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 13
- Comments: 33 (4 by maintainers)
I’ve come across this error also, the error is consistent but happens at different points during the video’s duration.
onErroris called twice and returns:A quick google search suggests that it’s an error in Android’s MediaPlayer (
MEDIA_ERROR_IO).I experienced the same issue with some of the videos:
{extras: -1004, what: 1}. Switching to ExoPlayer fixed it for me. 👍@omoprodigi I haven’t heard anything from Carlos. I haven’t been able to find anyone who can actually fix the issue.
error in android:
any help please?
@nagyv Looks like the issue got closed in the Android developer tracker as won’t fix.
the problem is still there, how can i do it ?