添加推流重试 最多执行 3次 每次间隔3秒

This commit is contained in:
shikong 2023-10-08 11:25:20 +08:00
parent 8624bc5db9
commit a0aaa3b190

View File

@ -118,6 +118,8 @@ public class DeviceProxyService {
return startSendRtpResp;
});
} catch (Exception e) {
Optional.ofNullable(zlmStreamChangeHookService.getUnregistHandler().remove(callId))
.ifPresent(ZlmStreamChangeHookService.ZlmStreamChangeHookHandler::handler);
throw new RuntimeException(e);
}
});
@ -174,6 +176,8 @@ public class DeviceProxyService {
return startSendRtpResp;
});
} catch (Exception e) {
Optional.ofNullable(zlmStreamChangeHookService.getUnregistHandler().remove(callId))
.ifPresent(ZlmStreamChangeHookService.ZlmStreamChangeHookHandler::handler);
throw new RuntimeException(e);
}
});