fix(android): set title for external subtitles (#3676)

This commit is contained in:
Krzysztof Moch
2024-04-14 14:57:04 +02:00
committed by GitHub
parent f815834025
commit 336b9f0220

View File

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