Commit 15f8d866 by ibaker Committed by Oliver Woodman

Select exolist-specified subtitles by default

If a sample has a subtitle file listed, it makes sense to show it by
default.

PiperOrigin-RevId: 277934597
parent 8dcd1e53
...@@ -436,7 +436,7 @@ public class PlayerActivity extends AppCompatActivity ...@@ -436,7 +436,7 @@ public class PlayerActivity extends AppCompatActivity
Format.createTextSampleFormat( Format.createTextSampleFormat(
/* id= */ null, /* id= */ null,
subtitleInfo.mimeType, subtitleInfo.mimeType,
/* selectionFlags= */ 0, C.SELECTION_FLAG_DEFAULT,
subtitleInfo.language); subtitleInfo.language);
MediaSource subtitleMediaSource = MediaSource subtitleMediaSource =
new SingleSampleMediaSource.Factory(dataSourceFactory) new SingleSampleMediaSource.Factory(dataSourceFactory)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment