Merge pull request #1529 from Mrjaco12/master
Fix Android audio crash fixes Issue #1417
This commit is contained in:
commit
c12e9d8361
@ -975,8 +975,8 @@ class ReactExoplayerView extends FrameLayout implements
|
|||||||
groupIndex = getGroupIndexForDefaultLocale(groups);
|
groupIndex = getGroupIndexForDefaultLocale(groups);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (groupIndex == C.INDEX_UNSET && trackType == C.TRACK_TYPE_VIDEO) { // Video auto
|
if (groupIndex == C.INDEX_UNSET && trackType == C.TRACK_TYPE_VIDEO && groups.length != 0) { // Video auto
|
||||||
if (groups.length != 0) {
|
// Add all tracks as valid options for ABR to choose from
|
||||||
TrackGroup group = groups.get(0);
|
TrackGroup group = groups.get(0);
|
||||||
tracks = new int[group.length];
|
tracks = new int[group.length];
|
||||||
groupIndex = 0;
|
groupIndex = 0;
|
||||||
@ -984,7 +984,8 @@ class ReactExoplayerView extends FrameLayout implements
|
|||||||
tracks[j] = j;
|
tracks[j] = j;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (groupIndex == C.INDEX_UNSET) {
|
|
||||||
|
if (groupIndex == C.INDEX_UNSET) {
|
||||||
trackSelector.setParameters(disableParameters);
|
trackSelector.setParameters(disableParameters);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user