Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
胡斌
2017-02-25 18:59:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b6cb37c7c90f5196c79cf20caf80547cac74668e
b6cb37c7
1 parent
013376b7
add "#EXT-X-PLAYLIST-TYPE:VOD","#EXT-X-MEDIA-SEQUENCE:0",and remove "#EXT-X-DISC…
…ONTINUITY" at the head of total.m3u8
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
7 行增加
和
3 行删除
trunk/src/app/srs_app_hls.cpp
trunk/src/app/srs_app_hls.cpp
查看文件 @
b6cb37c
...
...
@@ -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"
...
...
请
注册
或
登录
后发表评论