title: How does #EXT-X-DISCONTINUITY-SEQUENCE tag work in HLS m3u8 file
body: <p>I'm inspecting about <code>#EXT-X-DISCONTINUITY-SEQUENCE</code> tag in m3u8 file of HLS.
  (<a href="https://datatracker.ietf.org/doc/html/draft-pantos-http-live-streaming-23#section-4.3.3.3" rel="nofollow noreferrer">https://datatracker.ietf.org/doc/html/draft-pantos-http-live-streaming-23#section-4.3.3.3</a>)
  Does somebody can explain the working way of it?</p>
  <p>For example, let's suppose that m3u8 file is made for live streaming like below,
  After 2 seconds segment1.060.ts, file.000.ts will be gone from list and #EXT-X-DISCONTINUITY tag too.
  after all file.001.ts is going to be first media segment in the list.</p>
  <p>At this state, what sequence number should be in <code>#EXT-X-MEDIA-SEQUENCE</code>, <code>#EXT-X-DISCONTINUITY-SEQUENCE</code>?
  <code>#EXT-X-DISCONTINUITY</code> should be put in front of file.001.ts line again?</p>
  <pre><code>#EXTM3U
  #EXT-X-VERSION:6
  #EXT-X-MEDIA-SEQUENCE:60
  #EXT-X-DISCONTINUITY-SEQUENCE:0
  #EXT-X-ALLOW-CACHE:NO
  #EXT-X-TARGETDURATION:2
  
  #EXTINF:0.933600,
  segment1.060.ts
  
  #EXT-X-DISCONTINUITY
  #EXTINF:0.966911,
  file.000.ts
  
  #EXTINF:1.000489,
  file.001.ts
  </code></pre>