C API和WebHook未找到流回调添加直接关闭机制 (#1948)

This commit is contained in:
huangxiuqi
2022-09-09 10:55:35 +08:00
committed by GitHub
parent 7f86299c80
commit 258a4dd166
4 changed files with 22 additions and 7 deletions

View File

@@ -53,8 +53,10 @@ typedef struct {
* 未找到流后会广播该事件,请在监听该事件后去拉流或其他方式产生流,这样就能按需拉流了
* @param url_info 播放url相关信息
* @param sender 播放客户端相关信息
* @return 1 直接关闭
* 0 等待流注册
*/
void (API_CALL *on_mk_media_not_found)(const mk_media_info url_info,
int (API_CALL *on_mk_media_not_found)(const mk_media_info url_info,
const mk_sock_info sender);
/**
@@ -152,7 +154,7 @@ typedef struct {
size_t total_seconds,
int is_player,
const mk_sock_info sender);
/**
* 日志输出广播
@@ -178,4 +180,3 @@ API_EXPORT void API_CALL mk_events_listen(const mk_events *events);
}
#endif
#endif //MK_EVENTS_H