支持自定义环形缓冲大小

This commit is contained in:
xiongziliang
2018-12-29 17:38:10 +08:00
parent 41e5cab6c6
commit 5b5db04543
4 changed files with 8 additions and 6 deletions

View File

@@ -53,7 +53,8 @@ public:
const string &app,
const string &id,
bool bEnableHls = true,
bool bEnableMp4 = false):RtmpMediaSource(vhost, app, id){
bool bEnableMp4 = false,
int ringSize = 32):RtmpMediaSource(vhost, app, id,ringSize){
_recorder = std::make_shared<MediaRecorder>(vhost, app, id, bEnableHls, bEnableMp4);
}
virtual ~RtmpToRtspMediaSource(){}