Twitch-HLS-AdBlock icon indicating copy to clipboard operation
Twitch-HLS-AdBlock copied to clipboard

Stream freezes when sequence is rewritten to 0

Open stoically opened this issue 6 years ago • 1 comments

A side-effect of self._seq and self._wasAd keeping their values when switching streams (through xhr website-navigation which doesnt reload the wasmworker) is that the sequence can "always" get set to 0 - if the sequence of the new stream is smaller than the already set _seq - resulting in a stream-freeze (even if no Ad plays).

stoically avatar Mar 17 '19 21:03 stoically

Good catch, maybe hook into the router and just reset on each change. Or, probably much easier, add onClick listeners to the affected elements (I'd say sidebar and when browsing channels).

instance01 avatar Mar 18 '19 11:03 instance01