胡斌

add "#EXT-X-PLAYLIST-TYPE:VOD","#EXT-X-MEDIA-SEQUENCE:0",and remove "#EXT-X-DISC…

…ONTINUITY" at the head of total.m3u8
... ... @@ -789,6 +789,8 @@ int SrsHlsMuxer::segment_close(string log_desc)
ss << "#EXTM3U" << SRS_CONSTS_LF << "#EXT-X-VERSION:3"
<< SRS_CONSTS_LF << "#EXT-X-ALLOW-CACHE:YES"
<< SRS_CONSTS_LF;
ss << "#EXT-X-PLAYLIST-TYPE:VOD" << SRS_CONSTS_LF;
ss << "#EXT-X-MEDIA-SEQUENCE:0" << SRS_CONSTS_LF;
srs_verbose("write m3u8 header success.");
} else {
... ... @@ -810,9 +812,11 @@ int SrsHlsMuxer::segment_close(string log_desc)
if( m3u8_total_endlist_saved ){
erase_last_endlist = true;
}
// #EXT-X-DISCONTINUITY\n
ss << "#EXT-X-DISCONTINUITY" << SRS_CONSTS_LF;
srs_verbose("write m3u8 segment discontinuity success.");
if (currentSeg->sequence_no != 0) {
// #EXT-X-DISCONTINUITY\n
ss << "#EXT-X-DISCONTINUITY" << SRS_CONSTS_LF;
srs_verbose("write m3u8 segment discontinuity success.");
}
}
// "#EXTINF:4294967295.208,\n"
... ...