mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-06-29 21:47:50 +08:00
Compare commits
3 Commits
df6c37bb01
...
83cb3bac38
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
83cb3bac38 | ||
|
|
761c3082c9 | ||
|
|
e5fe596ee3 |
@ -409,7 +409,10 @@ public class RtpServerServiceImpl implements IReceiveRtpServerService {
|
||||
hookResultForOnPublish.setStream_replace(streamReplace);
|
||||
hookResultForOnPublish.setEnable_audio(enableAudio);
|
||||
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);
|
||||
// 存储认证信息,过期时间为60秒, 过期则无法通过认证
|
||||
|
||||
Loading…
Reference in New Issue
Block a user