Skip to content
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

Avoid crash on ExoPlayer when there are no tracks to choose from #1233

Merged
merged 1 commit into from
Sep 13, 2018

Conversation

cobarx
Copy link
Contributor

@cobarx cobarx commented Sep 13, 2018

Fixes #1190

What was happening is that the video contained no audio tracks, it would still attempt to select the audio track with index 0. We now check that there are tracks to choose from and if there aren't return the unset constant so that we turn of the renderer for that type of track.

@cobarx cobarx merged commit 44b626a into master Sep 13, 2018
@cobarx cobarx deleted the bugfix/no-audio-crash branch September 13, 2018 02:41
@cobarx cobarx changed the title Avoid crash when there are no tracks to choose from Avoid crash on ExoPlayer when there are no tracks to choose from Sep 13, 2018
rrosatti added a commit to alanpazetto/react-native-video that referenced this pull request May 6, 2019
…rack available

This fix was integrated on version 4.0.0. We need it in order to fix a problem
on Android, where the video freezes on the first frame when using a remote url
instead of an asset.

link to the upstream PR:
TheWidlarzGroup#1233
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant