mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-29 14:45:55 +08:00
Merge branch 'master' of https://github.com/xia-chu/ZLMediaKit into dev
This commit is contained in:
commit
e094a0bcae
@ -303,7 +303,7 @@ Value makeMediaSourceJson(MediaSource &media){
|
|||||||
item["originSock"] = Json::nullValue;
|
item["originSock"] = Json::nullValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(auto &track : media.getTracks()){
|
for(auto &track : media.getTracks(false)){
|
||||||
Value obj;
|
Value obj;
|
||||||
auto codec_type = track->getTrackType();
|
auto codec_type = track->getTrackType();
|
||||||
obj["codec_id"] = track->getCodecId();
|
obj["codec_id"] = track->getCodecId();
|
||||||
|
@ -301,14 +301,15 @@ void installWebHook(){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ArgsType body;
|
ArgsType body;
|
||||||
body["regist"] = bRegist;
|
|
||||||
if (bRegist) {
|
if (bRegist) {
|
||||||
body = makeMediaSourceJson(sender);
|
body = makeMediaSourceJson(sender);
|
||||||
|
body["regist"] = bRegist;
|
||||||
} else {
|
} else {
|
||||||
body["schema"] = sender.getSchema();
|
body["schema"] = sender.getSchema();
|
||||||
body["vhost"] = sender.getVhost();
|
body["vhost"] = sender.getVhost();
|
||||||
body["app"] = sender.getApp();
|
body["app"] = sender.getApp();
|
||||||
body["stream"] = sender.getId();
|
body["stream"] = sender.getId();
|
||||||
|
body["regist"] = bRegist;
|
||||||
}
|
}
|
||||||
//执行hook
|
//执行hook
|
||||||
do_http_hook(hook_stream_chaned,body, nullptr);
|
do_http_hook(hook_stream_chaned,body, nullptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user