Compare commits

...

4 Commits

2 changed files with 5 additions and 2 deletions

View File

@ -222,7 +222,7 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
if (sendRtpItem.isTcpActive()) { if (sendRtpItem.isTcpActive()) {
MediaServer mediaServer = mediaServerService.getOne(sendRtpItem.getMediaServerId()); MediaServer mediaServer = mediaServerService.getOne(sendRtpItem.getMediaServerId());
try { try {
mediaServerService.startSendRtpPassive(mediaServer, sendRtpItem, 5); mediaServerService.startSendRtpPassive(mediaServer, sendRtpItem, 5*1000);
DeviceChannel deviceChannel = deviceChannelService.getOneForSourceById(sendRtpItem.getChannelId()); DeviceChannel deviceChannel = deviceChannelService.getOneForSourceById(sendRtpItem.getChannelId());
if (deviceChannel != null) { if (deviceChannel != null) {
redisCatchStorage.sendPlatformStartPlayMsg(sendRtpItem, deviceChannel, platform); redisCatchStorage.sendPlatformStartPlayMsg(sendRtpItem, deviceChannel, platform);

View File

@ -409,7 +409,10 @@ public class RtpServerServiceImpl implements IReceiveRtpServerService {
hookResultForOnPublish.setStream_replace(streamReplace); hookResultForOnPublish.setStream_replace(streamReplace);
hookResultForOnPublish.setEnable_audio(enableAudio); hookResultForOnPublish.setEnable_audio(enableAudio);
hookResultForOnPublish.setEnable_mp4(enableMp4); hookResultForOnPublish.setEnable_mp4(enableMp4);
hookResultForOnPublish.setMp4_max_second(mp4MaxSecond); if (mp4MaxSecond != null) {
// mp4MaxSecond 需要比实际的流时长略长一些避免因为流时长超过mp4MaxSecond而生成文件切片
hookResultForOnPublish.setMp4_max_second(mp4MaxSecond + 10);
}
String key = String.format("%s:%s", VideoManagerConstants.RTP_AUTHENTICATE, streamId); String key = String.format("%s:%s", VideoManagerConstants.RTP_AUTHENTICATE, streamId);
// 存储认证信息过期时间为60秒 过期则无法通过认证 // 存储认证信息过期时间为60秒 过期则无法通过认证