mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 03:55:58 +08:00
hls切片以系统时间戳为准
This commit is contained in:
@@ -86,10 +86,10 @@ void HlsMaker::delOldFile() {
|
||||
}
|
||||
}
|
||||
|
||||
void HlsMaker::addNewFile(uint32_t timestamp) {
|
||||
int stampInc = timestamp - _stamp_last;
|
||||
void HlsMaker::addNewFile(uint32_t) {
|
||||
int stampInc = _ticker.elapsedTime();
|
||||
if (stampInc >= _seg_duration * 1000) {
|
||||
_stamp_last = timestamp;
|
||||
_ticker.resetTime();
|
||||
auto file_name = onOpenFile(_file_index);
|
||||
if (_file_index++ > 0) {
|
||||
_seg_dur_list.push_back(std::make_tuple(stampInc, _last_file_name));
|
||||
|
||||
Reference in New Issue
Block a user