新增发送rtp被动关闭hook

This commit is contained in:
xiongziliang
2022-08-27 10:53:47 +08:00
parent c2ab45f78d
commit 6a4297845f
9 changed files with 81 additions and 21 deletions

View File

@@ -1673,6 +1673,10 @@ void installWebApi() {
val["close"] = true;
});
api_regist("/index/hook/on_send_rtp_stopped",[](API_ARGS_JSON){
//发送rtp(startSendRtp)被动关闭时回调
});
static auto checkAccess = [](const string &params){
//我们假定大家都要权限访问
return true;