-
Notifications
You must be signed in to change notification settings - Fork 2.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
HLS interstitials freezes while playing #6765
Comments
It looks like the date range was removed from the live playlist while playback (active schedule index) was in the event. We haven't confirmed what the expected behavior is here. I think the expectation should be that the the interstitial is exited immediately and throwing playback back to primary at the nearest available resumption offset (you've defined one that might not exist until the interstitial is played through completely). This one will be a little tricky to replicate, but we can inject dateranges in the parser over live to replicate what's in the logs. Any additional debugging on your end would help. The first thing we might want to try is calling hls.js/src/controller/interstitials-controller.ts Lines 1419 to 1425 in d25ad97
|
From the HLS side, try keeping the date range in the playlist until the START-DATE + DURATION is less than the first PDT in the playlist (plus some number of target-durations for tardy clients). |
You are absolutely right, the thing was that EXT-X-DATERANGE went out of sliding window of playlist. I added it to header and it now works. Also I found that if advert playlist duration is more that tag's duration value then playback also is stalled. I think it will be better to continue main video in all cases. |
Now I use both EXT-X-DATERANGE and EXT-CUE tags, it perfectly works with hls.js and safari implementation https://github.com/Eyevinn/hls-interstitials-web-demo/tree/master
|
What version of Hls.js are you using?
c8ee777
What browser (including version) are you using?
Chrome
What OS (including version) are you using?
Ubuntu 24.04
Test stream
No response
Configuration
Additional player setup steps
Checklist
Steps to reproduce
Expected behaviour
Interstitial loads and plays while duration of Ext-x-datetime, then video playback resumes
What actually happened?
Interstitial loads and plays first 5 seconds then I see grey screen only, no video resume
In browser log "interstitials-controller.ts:1427 [warn] > [interstitials]: Interstitial "1" removed while playing"
Console output
Chrome media internals output
No response
The text was updated successfully, but these errors were encountered: