fix: index of the selected track (#4012)
This commit is contained in:
parent
6189080c9a
commit
fb1d6bdef7
@ -1591,7 +1591,7 @@ public class ReactExoplayerView extends FrameLayout implements
|
|||||||
if (format.sampleMimeType != null) track.setMimeType(format.sampleMimeType);
|
if (format.sampleMimeType != null) track.setMimeType(format.sampleMimeType);
|
||||||
if (format.language != null) track.setLanguage(format.language);
|
if (format.language != null) track.setLanguage(format.language);
|
||||||
if (format.label != null) track.setTitle(format.label);
|
if (format.label != null) track.setTitle(format.label);
|
||||||
track.setSelected(isTrackSelected(selection, group, 0));
|
track.setSelected(isTrackSelected(selection, group, trackIndex));
|
||||||
return track;
|
return track;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user