添加配置项,控制在关闭hook时,推流是否转协议或录制

This commit is contained in:
xiongziliang
2019-11-08 15:54:13 +08:00
parent 9b7d62347e
commit a8a4f267f7
6 changed files with 31 additions and 4 deletions

View File

@@ -324,8 +324,11 @@ void RtspSession::handleReq_RECORD(const Parser &parser){
auto flag = NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastMediaPublish,_mediaInfo,invoker,*this);
if(!flag){
//该事件无人监听,默认不鉴权
onRes("",true,true,false);
}
GET_CONFIG(bool,toRtxp,General::kPublishToRtxp);
GET_CONFIG(bool,toHls,General::kPublishToHls);
GET_CONFIG(bool,toMP4,General::kPublishToMP4);
onRes("",toRtxp,toHls,toMP4);
}
}
void RtspSession::handleReq_Describe(const Parser &parser) {