添加配置项,控制在关闭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

@@ -198,7 +198,10 @@ void RtmpSession::onCmd_publish(AMFDecoder &dec) {
*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);
}
}