From 1d3f72c91d356d4e626621fc3fd140cb97ba45e0 Mon Sep 17 00:00:00 2001 From: ibaker Date: Tue, 13 Apr 2021 14:41:56 +0100 Subject: [PATCH] Clarify documentation on C.SELECTION_FLAG_FORCED Issue: #8755 PiperOrigin-RevId: 368204094 --- .../src/main/java/com/google/android/exoplayer2/C.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/library/common/src/main/java/com/google/android/exoplayer2/C.java b/library/common/src/main/java/com/google/android/exoplayer2/C.java index 4abdf6e663..916b52b8bd 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/C.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/C.java @@ -588,7 +588,15 @@ public final class C { * Indicates that the track should be selected if user preferences do not state otherwise. */ public static final int SELECTION_FLAG_DEFAULT = 1; - /** Indicates that the track must be displayed. Only applies to text tracks. */ + /** + * Indicates that the track should be selected if its language matches the language of the + * selected audio track and user preferences do not state otherwise. Only applies to text tracks. + * + *

Tracks with this flag generally provide translation for elements that don't match the + * declared language of the selected audio track (e.g. speech in an alien language). See Netflix's summary + * for more info. + */ public static final int SELECTION_FLAG_FORCED = 1 << 1; // 2 /** * Indicates that the player may choose to play the track in absence of an explicit user