fix: index of the selected track (#4012)

This commit is contained in:
Seyed Mostafa Hasani 2024-07-24 11:38:37 +03:30 committed by GitHub
parent 6189080c9a
commit fb1d6bdef7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1591,7 +1591,7 @@ public class ReactExoplayerView extends FrameLayout implements
if (format.sampleMimeType != null) track.setMimeType(format.sampleMimeType);
if (format.language != null) track.setLanguage(format.language);
if (format.label != null) track.setTitle(format.label);
track.setSelected(isTrackSelected(selection, group, 0));
track.setSelected(isTrackSelected(selection, group, trackIndex));
return track;
}