mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-06 19:58:10 +08:00
写mp4文件缓存可配置
This commit is contained in:
@@ -260,11 +260,15 @@ const string kFileSecond = RECORD_FIELD"fileSecond";
|
||||
#define RECORD_FILE_PATH HTTP_ROOT_PATH
|
||||
const string kFilePath = RECORD_FIELD"filePath";
|
||||
|
||||
//mp4文件写缓存大小
|
||||
const string kFileBufSize = RECORD_FIELD"fileBufSize";
|
||||
|
||||
onceToken token([](){
|
||||
mINI::Instance()[kAppName] = RECORD_APP_NAME;
|
||||
mINI::Instance()[kSampleMS] = RECORD_SAMPLE_MS;
|
||||
mINI::Instance()[kFileSecond] = RECORD_FILE_SECOND;
|
||||
mINI::Instance()[kFilePath] = RECORD_FILE_PATH;
|
||||
mINI::Instance()[kFileBufSize] = 64 * 1024;
|
||||
},nullptr);
|
||||
|
||||
} //namespace Record
|
||||
|
||||
@@ -255,6 +255,8 @@ extern const string kSampleMS;
|
||||
extern const string kFileSecond;
|
||||
//录制文件路径
|
||||
extern const string kFilePath;
|
||||
//mp4文件写缓存大小
|
||||
extern const string kFileBufSize;
|
||||
} //namespace Record
|
||||
|
||||
////////////HLS相关配置///////////
|
||||
|
||||
Reference in New Issue
Block a user