Make video auto track selection more readable
This commit is contained in:
parent
2072793ae3
commit
da8a202a0f
@ -975,8 +975,8 @@ class ReactExoplayerView extends FrameLayout implements
|
||||
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;
|
||||
@ -984,7 +984,6 @@ class ReactExoplayerView extends FrameLayout implements
|
||||
tracks[j] = j;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (groupIndex == C.INDEX_UNSET) {
|
||||
trackSelector.setParameters(disableParameters);
|
||||
|
Loading…
Reference in New Issue
Block a user