mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 12:05:58 +08:00
优化HLS延时
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "Util/File.h"
|
||||
#include "Util/util.h"
|
||||
#include "Util/logger.h"
|
||||
#include <deque>
|
||||
|
||||
using namespace ZL::Util;
|
||||
|
||||
@@ -65,15 +66,15 @@ private:
|
||||
string m_strHttpUrl;
|
||||
string m_strFileName;
|
||||
string m_strOutputPrefix;
|
||||
string m_strTmpFileName;
|
||||
uint32_t m_ui32SegmentDuration;
|
||||
uint32_t m_ui32NumSegments;
|
||||
uint64_t m_ui64TsCnt;
|
||||
uint32_t m_ui32BufSize;
|
||||
Ticker m_Timer;
|
||||
std::deque<int> m_iDurations;
|
||||
|
||||
int write_index_file(int iFirstSegment, unsigned int uiLastSegment, int iEnd);
|
||||
void removets();
|
||||
bool write_index_file(int iFirstSegment, unsigned int uiLastSegment, int iEnd);
|
||||
bool removets();
|
||||
};
|
||||
|
||||
} /* namespace MediaFile */
|
||||
|
||||
Reference in New Issue
Block a user