mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
关闭hook时,流不存在就立即返回播放失败:#417
This commit is contained in:
parent
f84b3d90b4
commit
c612f291db
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user