This commit is contained in:
shikong 2024-03-19 08:36:43 +08:00
parent b955abc852
commit bb118293fd

View File

@ -621,6 +621,7 @@ public class DeviceProxyService {
});
zlmStreamChangeHookService.getUnregistHandler(DEFAULT_ZLM_APP).put(callId,()-> {
schedule.cancel(true);
StopSendRtp stopSendRtp = new StopSendRtp();
stopSendRtp.setApp(DEFAULT_ZLM_APP);
stopSendRtp.setStream(callId);
@ -719,9 +720,11 @@ public class DeviceProxyService {
optionalZlmStreamChangeHookHandler.ifPresent(handler -> {
log.warn("流改变事件未结束 ZlmStreamChange {} {}, 强制结束", DEFAULT_ZLM_APP,callId);
handler.handler();
});
optionalZlmStreamNoneReaderHandler.ifPresent(handler -> {
log.warn("流无人观看事件未结束 ZlmStreamNoneReader {} {}, 强制结束", DEFAULT_ZLM_APP, callId);
handler.handler();
});
sendBye(request,device,key);
}