React-native-video: Video not playing on Android API less than 23

Created on 27 May 2016  路  19Comments  路  Source: react-native-video/react-native-video

I've tested with API 19, 21, 22, and 23. 19 doesn't play video or audio and 21-22 play only audio. Is there a known issue with these versions that I could possibly fix? After some time spent on this I'm not exactly sure why it won't play the video. Any pointers would be much appreciated.

鈹咺ssue is synchronized with this Asana task

Android bug help wanted

Most helpful comment

So there is no progress on this issue for 3 years? :'(

All 19 comments

+1

+1

i have the same issue. is there a workaround for this?

+1

+1

+1

anyone solved this or found some workaround?

@juangutierrezortega yeap, my team and I discovered that by playing mp4, it worked fine in older devices. It struggled if we use hls tho.

@carlyeah we are trying to play MP4 videos and they doesn't work. Furthermore, we're working with the sample video and we're getting the same error.

Did you manage to make it work with that sample video?

@juangutierrezortega nope. but i do it in two different ways: by streaming the video, and if the user download it, by getting it from the local resources.

our main issue was the same that this post talk about, but just for hls, which is the main source we use. Later we came back and tried with mp4 for older devices, and it worked fine. Not the solution we want, but we're taking a look closer to find a fix.

Anyway, did you try by streaming the video? http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4

+1 any updates?

I'm having a similar issue, on android API 23 and react-native 0.31.0.
I can successfully play mp4 video right after recording using react-native-camera, however if I go to another scene and try playing the video there using same path I get

I/ReactNativeJS(30130): this.loadStart
I/ReactNativeJS(30130): this.loadStart
I/ReactNativeJS(30130): { error: { extra: -1021, what: 1 } }
I/ReactNativeJS(30130): { error: { extra: -1021, what: 1 } }

I don't know why onLoadStart is being called twice but both calls are returning errors

does anyone at least know what this can be caused of?

I Tried with the big buck bunny URL, and also a URL to an HLS by viblast. The HLS is giving signs of life - logging in the console things like:

D/ESQueue (  150): flush timeUs = 47505388788
D/NativeCrypto(25103): ssl=0xa59a1400 sslRead buf=0x9305e800 len=2048,timeo=60000
D/NativeCrypto(25103): ssl=0xa59a1400 sslRead buf=0x92d06800 len=2048,timeo=60000

(it's an HTTPS HLS, but without audio)

But it's not rendering

I also tried playing around with the

Is solved this problem?

I am also facing this issue on my Android 5.1 Lolipop mobile(Lenovo P1) but it is perfectly working in marshmallow(Oneplus 2) mobile.

Hello everyone, I am also facing this issue, problem depends on device, some devices can't support some formats of video

So there is no progress on this issue for 3 years? :'(

Is this issue still happening in RNVideo Android Exoplayer >5? I will reopen if it is

React-Native 0.63 still only getting audio on 5.1.1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shahankit picture shahankit  路  30Comments

ervishu83 picture ervishu83  路  26Comments

kkesley picture kkesley  路  27Comments

cande1gut picture cande1gut  路  19Comments

braco picture braco  路  37Comments