[JetStreamCompose] External subtitles not displayed
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- mobile-dev
Research direction
Start from the JetStreamCompose player setup shown in the issue and the subtitleUri entries in movies.json; verify how the MediaItem subtitle configuration is loaded and exposed during playback. Reproduce with a sample movie and confirm that the external VTT track is available and displayed by default.
Written by the indexing model from the issue text.
Description
According to the code, subtitles should be displayed by default if they are defined in movies.json. And in the example there are this subtitles defined for every sample movie:
{
"id": "8daa7d22d13a9",
"videoUri": "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
"subtitleUri": "https://thepaciellogroup.github.io/AT-browser-tests/video/subtitles-en.vtt",
and here is the code that loads the subtitles:
val exoPlayer = rememberExoPlayer(context)
LaunchedEffect(exoPlayer, movieDetails) {
exoPlayer.setMediaItem(
MediaItem.Builder()
.setUri(movieDetails.videoUri)
.setSubtitleConfigurations(
if (movieDetails.subtitleUri == null) {
emptyList()
} else {
listOf(
MediaItem.SubtitleConfiguration.Builder(Uri.parse(movieDetails.subtitleUri))
.setMimeType("application/vtt")
.setLanguage("en")
.setSelectionFlags(C.SELECTION_FLAG_DEFAULT)
.build()
)
}
).build()
)
exoPlayer.prepare()
}
But the subtitles are never displayed. Even if we enable default overlay (useController = true), there is no option to enable subtitles there, like it never even loads them.
Is this some exoplayer issue or some problem with using it with compose? I tried to build the sample from the time this code was first added. But it doesn't work either.
- Dominant language
- Kotlin
- Stars
- 1.3k
- Forks
- 400
- Avg merge
- 9d 10h
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from android/tv-samples
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
android/tv-samples#227 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
android/tv-samples#220 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 32/100
android/tv-samples#218 ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
android/tv-samples#216 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
android/tv-samples#215 ·
All issues in android/tv-samples
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
MetrolistGroup/Metrolist#5426 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
🐛 Type:Bug 📥 State:Awaiting Assignment 🚨 Priority: P0 - Critical
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
micronizationlab/glafira-ai-hub#785 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sorsama/deepseek-harness-mobile#154 ·
Maintainers usually reply within 1 day
-
0. Needs triage enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day