mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
on_publish hook新增rtsp/rtmp/ts/fmp4转协议开关
This commit is contained in:
parent
0f1120b8a6
commit
8db01651fe
@ -286,7 +286,6 @@ void installWebHook(){
|
||||
ProtocolOption option;
|
||||
if (err.empty()) {
|
||||
//推流鉴权成功
|
||||
//兼容用户不传递enableHls、enableMP4参数
|
||||
if (obj.isMember("enable_hls")) {
|
||||
option.enable_hls = obj["enable_hls"].asBool();
|
||||
}
|
||||
@ -308,6 +307,18 @@ void installWebHook(){
|
||||
if (obj.isMember("hls_save_path")) {
|
||||
option.hls_save_path = obj["hls_save_path"].asString();
|
||||
}
|
||||
if (obj.isMember("enable_rtsp")) {
|
||||
option.enable_rtsp = obj["enable_rtsp"].asBool();
|
||||
}
|
||||
if (obj.isMember("enable_rtmp")) {
|
||||
option.enable_rtmp = obj["enable_rtmp"].asBool();
|
||||
}
|
||||
if (obj.isMember("enable_ts")) {
|
||||
option.enable_ts = obj["enable_ts"].asBool();
|
||||
}
|
||||
if (obj.isMember("enable_fmp4")) {
|
||||
option.enable_fmp4 = obj["enable_fmp4"].asBool();
|
||||
}
|
||||
invoker(err, option);
|
||||
} else {
|
||||
//推流鉴权失败
|
||||
|
Loading…
Reference in New Issue
Block a user