调整 ffmpeg 启动时机

This commit is contained in:
shikong 2024-03-13 12:30:14 +08:00
parent 2dc1f43401
commit fd8a711662

View File

@ -620,7 +620,7 @@ public class Gb28181DownloadService {
subscribe.getByeSubscribe().addSubscribe(key, byeSubscriber(key, device, cacheKey, streamId, time, unit));
return SipRequestBuilder.createAckRequest(Response.OK, ip, port, docking, device.getGbDeviceChannelId(), fromTag, toTag, callId);
}));
},100, TimeUnit.MILLISECONDS);
},1000, TimeUnit.MILLISECONDS);
} else {
log.info("订阅 {} {} 连接流媒体服务时出现异常, 终止订阅", MessageProcessor.Method.INVITE, subscribeKey);
zlmMediaService.closeRtpServer(new CloseRtpServer(streamId));