mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
添加listRtpServer接口
This commit is contained in:
parent
b603b8a68d
commit
2be19ffb31
@ -779,6 +779,14 @@ void installWebApi() {
|
||||
val["hit"] = (int)s_rtpServerMap.erase(allArgs["port"].as<uint16_t>());
|
||||
});
|
||||
|
||||
api_regist1("/index/api/listRtpServer",[](API_ARGS1){
|
||||
CHECK_SECRET();
|
||||
|
||||
lock_guard<recursive_mutex> lck(s_rtpServerMapMtx);
|
||||
for(auto &pr : s_rtpServerMap){
|
||||
val["data"].append(pr.first);
|
||||
}
|
||||
});
|
||||
|
||||
#endif//ENABLE_RTPPROXY
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user