mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 12:37:09 +08:00
修复协议转换配置开关不生效的bug
This commit is contained in:
parent
5258169a07
commit
9cdbe4c4ef
@ -227,20 +227,24 @@ void installWebHook(){
|
|||||||
do_http_hook(hook_publish,body,[invoker](const Value &obj,const string &err){
|
do_http_hook(hook_publish,body,[invoker](const Value &obj,const string &err){
|
||||||
if(err.empty()){
|
if(err.empty()){
|
||||||
//推流鉴权成功
|
//推流鉴权成功
|
||||||
|
bool enableRtxp = toRtxp;
|
||||||
|
bool enableHls = toHls;
|
||||||
|
bool enableMP4 = toMP4;
|
||||||
|
|
||||||
//兼容用户不传递enableRtxp、enableHls、enableMP4参数
|
//兼容用户不传递enableRtxp、enableHls、enableMP4参数
|
||||||
if(obj.isMember("enableRtxp")){
|
if(obj.isMember("enableRtxp")){
|
||||||
toRtxp = obj["enableRtxp"].asBool();
|
enableRtxp = obj["enableRtxp"].asBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(obj.isMember("enableHls")){
|
if(obj.isMember("enableHls")){
|
||||||
toHls = obj["enableHls"].asBool();
|
enableHls = obj["enableHls"].asBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(obj.isMember("enableMP4")){
|
if(obj.isMember("enableMP4")){
|
||||||
toMP4 = obj["enableMP4"].asBool();
|
enableMP4 = obj["enableMP4"].asBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
invoker(err,toRtxp,toHls,toMP4);
|
invoker(err,enableRtxp,enableHls,enableMP4);
|
||||||
}else{
|
}else{
|
||||||
//推流鉴权失败
|
//推流鉴权失败
|
||||||
invoker(err,false, false, false);
|
invoker(err,false, false, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user