hls.js
hls.js copied to clipboard
When seeking over an interstitial, resume the primary content at the original seek target time after it ends.
Is your feature request related to a problem? Please describe.
N/A
Describe the solution you'd like
As discussed earlier, seeking over an interstitial should maintain the original seek target when returning to primary. The RESUME-OFFSET shall be ignored.
Additional context
N/A
The interstitial-controller has a shouldPlay state flag used to resume playback after source resets. I suppose a similar seekTarget could be maintained when a seek is issued and interrupted by interstitial playback. This target could then be used when resuming primary after the seek interrupting break.
https://hlsjs.video-dev.org/demo/?src=https%3A%2F%2Fwistia.github.io%2Fhlsjs-test-streams%2Fassets%2Fstart-delimiter.m3u8&demoConfig=eyJlbmFibGVTdHJlYW1pbmciOnRydWUsImF1dG9SZWNvdmVyRXJyb3IiOnRydWUsInN0b3BPblN0YWxsIjpmYWxzZSwiZHVtcGZNUDQiOmZhbHNlLCJsZXZlbENhcHBpbmciOi0xLCJsaW1pdE1ldHJpY3MiOi0xfQ==)`