Fix single track playback
This commit is contained in:
parent
c7b7390267
commit
e90ab21c91
@ -1612,6 +1612,10 @@ class ReactExoplayerView extends FrameLayout implements
|
||||
supportedFormatLength++;
|
||||
}
|
||||
}
|
||||
if (allTracks.length == 1) {
|
||||
// With only one tracks we can't remove any tracks so attempt to play it anyway
|
||||
tracks = allTracks;
|
||||
} else {
|
||||
tracks = new int[supportedFormatLength + 1];
|
||||
int o = 0;
|
||||
for (int k = 0; k < allTracks.length; k++) {
|
||||
@ -1623,6 +1627,7 @@ class ReactExoplayerView extends FrameLayout implements
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (groupIndex == C.INDEX_UNSET) {
|
||||
trackSelector.setParameters(disableParameters);
|
||||
|
Loading…
Reference in New Issue
Block a user