-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebVtt captions display for HLS Live stream with 10s segments, but not for stream with 3.8s segments #1147
Comments
If you expect to see subtitles on screen and they don't show up, that seems like a bug to me... Can you try parsing subtitles during extraction instead to see if it resolves the issue (this option was only added recently, so you'll need to try this in the media3 demo app): https://developer.android.com/reference/androidx/media3/exoplayer/source/DefaultMediaSourceFactory#experimentalParseSubtitlesDuringExtraction(boolean) Hard to comment on the rest of your questions without understanding why the problem is happening I'm afraid. |
The only class that I could find that has that method is DashMediaSource. |
The method is also present on |
I added that call in the demo's PlayerActivity, line 318:
and set a breakpoint in DefaultMediaSourceFactory, line 511, since this conditional wraps the conditional for
I'm seeing that for both streams, 10s and 3.84s segments, that the Looking at logcats for tests with each stream, I'm seeing that on the same device (Samsung S20, Android 12), there is an additional codec listed the text group for the 3.84s segment stream:
For the 3.84s stream:
|
Which version of the library did you use to generate the logs/behaviour in #1147 (comment)? |
I was testing on the main branch. Just re-checked it to be sure, on both main and the latest release tag, and the same observations apply. |
@icbaker Can we transition this to a bug, or should I open a new ticket? |
The setup:
Our customer has a live HLS stream, with 10-segment duration, with VTT subtitles. When playing this stream in the Androidx Media demo, the captions can be selected and displayed. The customer wants to use a shorter segment duration (3.84s), however, for the stream that plays these shorter durations in the demo, captions can be selected, and show in the
tracks
log output as selected, but do not display.There are no errors written to the logcat.
I've also observed this behavior with ExoPlayer 2.19.1 (which our SDK is currently using; we are planning to migrate to AndroidX Media later this spring).
I've noticed with the customer's 10s segment feed, that the captions displayed appear to have some minor sync issues with the spoken dialog.
(both 10s and 3.84s URLs will be shared through the dev email)
Questions:
Thanks in advance for your assistance.
The text was updated successfully, but these errors were encountered: