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

Varying MediaSequence between variant playlist

Open psykro opened this issue 4 years ago • 1 comments

What do you want to do with Hls.js?

We are doing some Server Side Ad Insertion and sruggling to make it work correctly.

From what we understood from the specs:

A client MUST NOT assume that segments with the same Media Sequence Number in different Variant Streams or Renditions have the same position in the presentation; Playlists MAY have independent Media Sequence Numbers. Instead, a client MUST use the relative position of each segment on the Playlist timeline and its Discontinuity Sequence Number to locate corresponding segments.

In our implementation the Media Sequence greatly varies and is initialized to 1 the first time a variant is requested. It seems however that the client (hls.js) fails to move from playlist to another when the MS differs. But the specs indicate that a client MUST NOT assume media sequence number is the same. It must be noted that we don't currently implement the EXT-X-DISCONTINUITY-SEQ is that mandatroy ? (although it was not present in older specifications)

kR

What have you tried so far?

No response

psykro avatar Aug 26 '21 20:08 psykro

Please fill out the Bug Report Template as part of your issue, making sure to include:

  • HLS.js version
  • Test stream/page (if possible)
  • Steps to reproduce
  • Expected behavior
  • Actual behavior

robwalch avatar Jul 15 '22 06:07 robwalch

Closing due to inactivity. If you would like to reopen the issue, please share a sample stream and complete bug report that could be used to diagnose the issue.

robwalch avatar Jan 04 '23 18:01 robwalch