mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-19 12:30:55 +08:00
添加配置项,控制在关闭hook时,推流是否转协议或录制
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user