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 subtitles broken when calling loadSource(..) inside MEDIA_ATTACHED-Event #3053
Comments
Hi @netTrekfd, Do you ever call I don't know if your setup depends on |
Hi @robwalch, Indeed our own setup is relying on |
Thanks @netTrekfd, Could you make the "Steps to reproduce" a little clearer? Example:
hls.attachMedia(video);
hls.on(Hls.Events.MEDIA_ATTACHED, function () {
hls.loadSource(url);
}
I didn't realize you included a test page. Thank you. I can reproduce the issue. |
Looks like this issue is in subtitle-stream-controller. It only starts its tick interval in |
Thanks @robwalch for your feedback, i updated the issue accordingly. I will have a look at the subtitle-stream-controller and prepare a fix. |
… otherwise it is done inside the onSubtitleTrackSwitch and/or onSubtitleTrackLoaded event. video-dev#3053
Hi @robwalch, i just added a PR for this issue. During my tests i found another issue related to the loading behaviour which was a little bit tricky to reproduce. Actually it only occurred in about 5% of all tests and depends on network speed/latency (it was easier to reproduce via LTE) and general system performance. The problem is, that the last loaded fragment was saved correctly ( I luckily was able to record it: https://clients.nettrek.de/hlsjs/issue3053.mp4 This is fixed with this commit: netTrekfd@2736608 Thanks! |
Hi @netTrekfd, Great catch! I left you some feedback in the fix PR #3063 (comment) |
… otherwise it is done inside the onSubtitleTrackSwitch and/or onSubtitleTrackLoaded event. video-dev#3053
What version of Hls.js are you using?
The bug initially appeared in 0.14.8 and is reproducable in every release since then.
What browser and OS are you using?
Chrome and Firefox (latest) on macOS 10.15.5 and windows 10, but does not seam to be OS or browser related.
Test stream:
https://zdfhls20-i.akamaihd.net/hls/live/744753/none/high/master.m3u8
Checklist
Steps to reproduce
Expected behavior
According to the API it should be ok to call
hls.loadSource(...)
inside theHls.Events.MEDIA_ATTACHED
event.Subtitles should be showing up.
Actual behavior
Subtitles are not showing up, regardless which subtitle track is being selected.
Console output
The console output does not show up any errors.
The text was updated successfully, but these errors were encountered: