Skip to content

Commit

Permalink
fix: Android playback issues using changes from react-native-video Th…
Browse files Browse the repository at this point in the history
  • Loading branch information
kaibarnes committed May 23, 2019
1 parent f38b6f8 commit f35bbbe
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -975,16 +975,16 @@ public void setSelectedTrack(int trackType, String type, Dynamic value) {
groupIndex = getGroupIndexForDefaultLocale(groups);
}

if (groupIndex == C.INDEX_UNSET && trackType == C.TRACK_TYPE_VIDEO) { // Video auto
if (groups.length != 0) {
if (groupIndex == C.INDEX_UNSET && trackType == C.TRACK_TYPE_VIDEO && groups.length != 0) { // Video auto
// Add all tracks as valid options for ABR to choose from
TrackGroup group = groups.get(0);
tracks = new int[group.length];
groupIndex = 0;
for (int j = 0; j < group.length; j++) {
tracks[j] = j;
}
}
} else if (groupIndex == C.INDEX_UNSET) {
if (groupIndex == C.INDEX_UNSET) {
trackSelector.setParameters(disableParameters);
return;
}
Expand Down

0 comments on commit f35bbbe

Please sign in to comment.