mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-11-24 00:47:21 +08:00
AI automatically translates all comments in the code into English (#3917)
This commit is contained in:
@@ -39,10 +39,12 @@ bool HlsParser::parse(const string &http_url, const string &m3u8) {
|
||||
segment.duration = extinf_dur;
|
||||
segment.url = Parser::mergeUrl(http_url, line);
|
||||
if (!_is_m3u8_inner) {
|
||||
//ts按照先后顺序排序
|
||||
// ts按照先后顺序排序 [AUTO-TRANSLATED:c34f8c9d]
|
||||
// Sort by order of appearance
|
||||
ts_map.emplace(index++, segment);
|
||||
} else {
|
||||
//子m3u8按照带宽排序
|
||||
// 子m3u8按照带宽排序 [AUTO-TRANSLATED:749cb42b]
|
||||
// Sort sub m3u8 by bandwidth
|
||||
ts_map.emplace(segment.bandwidth, segment);
|
||||
}
|
||||
extinf_dur = 0;
|
||||
@@ -91,7 +93,8 @@ bool HlsParser::parse(const string &http_url, const string &m3u8) {
|
||||
}
|
||||
|
||||
if (line.find("#EXT-X-ENDLIST") == 0) {
|
||||
//点播
|
||||
// 点播 [AUTO-TRANSLATED:a64427bc]
|
||||
// On-demand
|
||||
_is_live = false;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user