Add config for save fmp4 record files (#3356)

This commit is contained in:
jamesZHANG500
2024-03-10 16:19:02 +08:00
committed by GitHub
parent 78a6f041a8
commit 03c93d0b23
4 changed files with 8 additions and 1 deletions

View File

@@ -31,7 +31,8 @@ void MP4Muxer::openMP4(const string &file) {
MP4FileIO::Writer MP4Muxer::createWriter() {
GET_CONFIG(bool, mp4FastStart, Record::kFastStart);
return _mp4_file->createWriter(mp4FastStart ? MOV_FLAG_FASTSTART : 0, false);
GET_CONFIG(bool, recordEnableFmp4, Record::kEnableFmp4);
return _mp4_file->createWriter(mp4FastStart ? MOV_FLAG_FASTSTART : 0, recordEnableFmp4);
}
void MP4Muxer::closeMP4() {