hls.js icon indicating copy to clipboard operation
hls.js copied to clipboard

When seeking over an interstitial, resume the primary content at the original seek target time after it ends.

Open matvp91 opened this issue 9 months ago • 1 comments

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

matvp91 avatar Feb 17 '25 20:02 matvp91

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.

robwalch avatar Feb 20 '25 15:02 robwalch

https://hlsjs.video-dev.org/demo/?src=https%3A%2F%2Fwistia.github.io%2Fhlsjs-test-streams%2Fassets%2Fstart-delimiter.m3u8&demoConfig=eyJlbmFibGVTdHJlYW1pbmciOnRydWUsImF1dG9SZWNvdmVyRXJyb3IiOnRydWUsInN0b3BPblN0YWxsIjpmYWxzZSwiZHVtcGZNUDQiOmZhbHNlLCJsZXZlbENhcHBpbmciOi0xLCJsaW1pdE1ldHJpY3MiOi0xfQ==)`

Leonis3 avatar Jul 05 '25 18:07 Leonis3