-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In android ExoPlayer Audio only play crashes #1460
Comments
Defect fix for issue TheWidlarzGroup#1460
For me with this fix it is working again. Looks #1442 is the same issue. |
@sridhard Thanks for the PR. Fixes the problem in my case. I applied the changes and my audio plays normally. |
this problem exist in react-native-video 4.4.0 version, when this fix would be released? |
@Chalchi52 It sounds like there are multiple issues and while the PR fixed some of them, doesn't address the problem you are having. Can you share the props & source you are having problems with. |
Hi @cobarx I share the following information that I get when updating the version Versions in package.json: I need update my project to gradle 3 version, but change to react-native-video of 3.2.1 to 4.4.0 not works in android devices for API 23 or upper into build.gradle test with:
and
My definition of component is:
Put an static url but no works. I also put this property into logcat say the following:
|
Hi @cobarx Force the version 3.2.1 to work with 3 gradle version with the following build.gradle:
Because the last version 4.4.0 no works for me with any exoplayer version for the bug that I mentioned earlier |
Hi @cobarx , We are having the same error as @Chalchi52 and we need to upgrade to gradle plugin 3.3.2 ... and it was working on react-native-video 3.2.1 with gradle plugin 3.1.4 and gradle-4.4 not working project: Thanks for your support! :) |
@cobarx, to be more specific, only appear that crash when play the audio. thanks again :) |
Current behavior
When playing audio only file, exoplayer is crashing with the below stack:
01-30 20:03:49.283 10563 11830 E ExoPlayerImplInternal: Internal runtime error.
01-30 20:03:49.283 10563 11830 E ExoPlayerImplInternal: java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1
01-30 20:03:49.283 10563 11830 E ExoPlayerImplInternal: at com.google.android.exoplayer2.source.TrackGroupArray.get(TrackGroupArray.java:65)
01-30 20:03:49.283 10563 11830 E ExoPlayerImplInternal: at com.google.android.exoplayer2.trackselection.DefaultTrackSelector.selectTracks(DefaultTrackSelector.java:1264)
01-30 20:03:49.283 10563 11830 E ExoPlayerImplInternal: at com.google.android.exoplayer2.trackselection.MappingTrackSelector.selectTracks(MappingTrackSelector.java:394)
01-30 20:03:49.283 10563 11830 E ExoPlayerImplInternal: at com.google.android.exoplayer2.MediaPeriodHolder.selectTracks(MediaPeriodHolder.java:160)
01-30 20:03:49.283 10563 11830 E ExoPlayerImplInternal: at com.google.android.exoplayer2.ExoPlayerImplInternal.reselectTracksInternal(ExoPlayerImplInternal.java:1001)
01-30 20:03:49.283 10563 11830 E ExoPlayerImplInternal: at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:327)
01-30 20:03:49.283 10563 11830 E ExoPlayerImplInternal: at android.os.Handler.dispatchMessage(Handler.java:98)
01-30 20:03:49.283 10563 11830 E ExoPlayerImplInternal: at android.os.Looper.loop(Looper.java:163)
01-30 20:03:49.283 10563 11830 E ExoPlayerImplInternal: at android.os.HandlerThread.run(HandlerThread.java:61)
01-30 20:03:49.284 10563 10563 D ReactExoplayerView: onStateChanged: playWhenReady=true, playbackState=ready
Reproduction steps
Play any audio file
Expected behavior
play should be success
Platform
Which player are you experiencing the problem on:
The text was updated successfully, but these errors were encountered: