mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-04 09:47:33 +08:00
hls保存ts文件时根据日期、时间保存
This commit is contained in:
@@ -49,9 +49,9 @@ protected:
|
||||
void onWriteSegment(const char *data, int len) override;
|
||||
void onWriteHls(const char *data, int len) override;
|
||||
private:
|
||||
string fullPath(int index);
|
||||
std::shared_ptr<FILE> makeFile(const string &file,bool setbuf = false);
|
||||
private:
|
||||
map<int /*index*/,string/*file_path*/> _segment_file_paths;
|
||||
std::shared_ptr<FILE> _file;
|
||||
std::shared_ptr<char> _file_buf;
|
||||
string _path_prefix;
|
||||
|
||||
Reference in New Issue
Block a user