4.3.3.3. EXT-X-DISCONTINUITY-SEQUENCE The EXT-X-DISCONTINUITY-SEQUENCE tag allows synchronization between different Renditions of the same Variant Stream or different Variant Streams that have EXT-X-DISCONTINUITY tags in their Media Playlists.
这个是hls spec中的描述
what`s Variant Streams?
是master playlist中的一个?如http://example.com/low.m3u8
#EXTM3U
#EXT-X-STREAM-INF:BANDWIDTH=1280000,AVERAGE-BANDWIDTH=1000000
http://example.com/low.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=2560000,AVERAGE-BANDWIDTH=2000000
http://example.com/mid.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=7680000,AVERAGE-BANDWIDTH=6000000
http://example.com/hi.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=65000,CODECS="mp4a.40.5"
http://example.com/audio-only.m3u8
each time server remove a EXT-X-DISCONTINUITY from the playlist you must increment the EXT-X-DISCONTINUITY-SEQUENCE
each time server removea segment from the playlist you must increment
hls spec中描述移除掉一个EXT-X-DISCONTINUITY,EXT-X-DISCONTINUITY-SEQUENCE就要加1.
> #EXTM3U
> #EXT-X-DISCONTINUITY-SEQUENCE:0
> #EXT-X-MEDIA-SEQUENCE:0
> #EXT-X-ALLOW-CACHE:NO
> #EXT-X-VERSION:2
> #EXT-X-TARGETDURATION:8
> #EXTINF:8,
> fragment1.ts
> #EXTINF:8,
> fragment2.ts
> #EXTINF:8,
> fragment3.ts
> #EXTINF:8,
> fragment4.ts
> #EXTINF:8,
> fragment5.ts
> #EXTINF:8,
> fragment6.ts
> #EXTINF:4,
> fragment7.ts
> #EXT-X-DICONTINUITY
> #EXTINF:8,
> fragment0.ts
不理解EXT-X-DISCONTINUITY-SEQUENCE是怎么样同步的。求大佬赐教