From 336b9f022065b881eb31038ea1adba9dc54b2a08 Mon Sep 17 00:00:00 2001 From: Krzysztof Moch Date: Sun, 14 Apr 2024 14:57:04 +0200 Subject: [PATCH] fix(android): set title for external subtitles (#3676) --- .../main/java/com/brentvatne/exoplayer/ReactExoplayerView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index 007a39e4..eee80fef 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -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; }