-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Getting java.io.EOFException while streaming from a HLS media #2355
Comments
This is a duplicate of #2025. The quickest way to fix this is adding a .vtt extension to each media segment. We will also provide a fix for this for Webvtt tracks soon. |
@AquilesCanta thanks for the response. The media we are trying to play is external to us and won't be possible to ask the provider to update their extension for each media segment. |
My best advice, if you can't modify the stream(by the way, this should be trivial for the producers), is to switch to Exoplayer V2. A fix will be available in the next push, as it's already available internally. If you can't wait until next push, in HlsMediaChunk (r2.1.1) you should change the
condition in
This is for the last V2 available subversion. If you don't want to migrate to V2 you'll have to work out an equivalent solution, since we have not decided whether we are going to backport this. At this point, we only backport straightforward bugfixes. Unfortunately, this is not the case here. I will write back to let you know what the plan is, or close should we decide not to backport the fix. |
According to the spec, subtitle renditions must be Webvtt media segments. Issue:#2025 Issue:#2355 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=145289266
-https://ajo.dev.reuters.tv/rest/v2/xato/playlist/assets/139287,140784,140847,140800,57445,127691,140785,127679,140855,127800,140799,127770,140803,139291/video.m3u8
is the link I am trying to stream from. This fails to render the subtitles our app as well as on the demo app. However tried in QuickPlayer where it works perfectly fine with the subtitles.
While in the ExoPlayer Demo app, doesnt show any subtitles despite enabling it.
Looking the exception, seems to me that ExoPlayer is trying to use TsExtractor but the subtitles are in WebVtt format
WEBVTT
X-TIMESTAMP-MAP=MPEGTS:900000,LOCAL:00:00:00.000
1
00:00:01.000 --> 00:00:05.000 line:-3
Captioning in progress...
The text was updated successfully, but these errors were encountered: