优化视频下载时长设置,增加10秒容错

This commit is contained in:
lin 2026-05-09 10:21:24 +08:00
parent 6c4734ff29
commit e5fe596ee3

View File

@ -409,7 +409,7 @@ public class RtpServerServiceImpl implements IReceiveRtpServerService {
hookResultForOnPublish.setStream_replace(streamReplace);
hookResultForOnPublish.setEnable_audio(enableAudio);
hookResultForOnPublish.setEnable_mp4(enableMp4);
hookResultForOnPublish.setMp4_max_second(mp4MaxSecond);
hookResultForOnPublish.setMp4_max_second(mp4MaxSecond + 10);
String key = String.format("%s:%s", VideoManagerConstants.RTP_AUTHENTICATE, streamId);
// 存储认证信息过期时间为60秒 过期则无法通过认证