mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-05-31 23:13:44 +08:00
对于webhook 涉及到media info的相关信息,增加protocol 的字段,表明是基于什么协议传输的
This commit is contained in:
@@ -229,6 +229,11 @@ void dumpMediaTuple(const MediaTuple &tuple, Json::Value& item);
|
||||
static ArgsType make_json(const MediaInfo &args) {
|
||||
ArgsType body;
|
||||
body["schema"] = args.schema;
|
||||
if(!args.protocol.empty()){
|
||||
body["protocol"] = args.protocol;
|
||||
}else{
|
||||
body["protocol"] = args.schema;
|
||||
}
|
||||
dumpMediaTuple(args, body);
|
||||
body["params"] = args.params;
|
||||
return body;
|
||||
|
||||
Reference in New Issue
Block a user