调试
This commit is contained in:
parent
41f13af88d
commit
da03975bdf
@ -136,9 +136,13 @@ public class DeviceProxyService {
|
|||||||
return startSendRtpResp;
|
return startSendRtpResp;
|
||||||
});
|
});
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
log.error("调用 zlm rtp 推流失败", e);
|
||||||
schedule.cancel(true);
|
schedule.cancel(true);
|
||||||
|
// 响应 sdp ok
|
||||||
|
sendOkResponse.run();
|
||||||
Optional.ofNullable(zlmStreamChangeHookService.getUnregistHandler(DEFAULT_ZLM_APP).remove(callId))
|
Optional.ofNullable(zlmStreamChangeHookService.getUnregistHandler(DEFAULT_ZLM_APP).remove(callId))
|
||||||
.ifPresent(ZlmStreamChangeHookService.ZlmStreamChangeHookHandler::handler);
|
.ifPresent(ZlmStreamChangeHookService.ZlmStreamChangeHookHandler::handler);
|
||||||
|
sendBye(request,device,key);
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,10 +152,12 @@ public class DeviceProxyService {
|
|||||||
sendOkResponse.run();
|
sendOkResponse.run();
|
||||||
// });
|
// });
|
||||||
zlmStreamChangeHookService.getUnregistHandler(DEFAULT_ZLM_APP).put(callId,()->{
|
zlmStreamChangeHookService.getUnregistHandler(DEFAULT_ZLM_APP).put(callId,()->{
|
||||||
|
scheduledExecutorService.schedule(()->{
|
||||||
StopSendRtp stopSendRtp = new StopSendRtp();
|
StopSendRtp stopSendRtp = new StopSendRtp();
|
||||||
stopSendRtp.setApp(DEFAULT_ZLM_APP);
|
stopSendRtp.setApp(DEFAULT_ZLM_APP);
|
||||||
stopSendRtp.setStream(callId);
|
stopSendRtp.setStream(callId);
|
||||||
stopSendRtp.setSsrc(ssrc);
|
stopSendRtp.setSsrc(ssrc);
|
||||||
|
}, 5, TimeUnit.SECONDS);
|
||||||
});
|
});
|
||||||
zlmStreamNoneReaderHookService.getHandler(DEFAULT_ZLM_APP).put(callId,()->{
|
zlmStreamNoneReaderHookService.getHandler(DEFAULT_ZLM_APP).put(callId,()->{
|
||||||
sendBye(request,device,key);
|
sendBye(request,device,key);
|
||||||
|
Loading…
Reference in New Issue
Block a user