Commit c612f291 by xiongziliang

关闭hook时,流不存在就立即返回播放失败:#417

parent f84b3d90
...@@ -336,6 +336,7 @@ void installWebHook(){ ...@@ -336,6 +336,7 @@ void installWebHook(){
//监听播放失败(未找到特定的流)事件 //监听播放失败(未找到特定的流)事件
NoticeCenter::Instance().addListener(nullptr,Broadcast::kBroadcastNotFoundStream,[](BroadcastNotFoundStreamArgs){ NoticeCenter::Instance().addListener(nullptr,Broadcast::kBroadcastNotFoundStream,[](BroadcastNotFoundStreamArgs){
if(!hook_enable || hook_stream_not_found.empty()){ if(!hook_enable || hook_stream_not_found.empty()){
closePlayer();
return; return;
} }
auto body = make_json(args); auto body = make_json(args);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论