mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-06-29 21:47:50 +08:00
Compare commits
4 Commits
580ac20e19
...
41f9e12e90
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41f9e12e90 | ||
|
|
761c3082c9 | ||
|
|
e5fe596ee3 | ||
|
|
8e32f17e6e |
@ -59,7 +59,7 @@ services:
|
||||
networks:
|
||||
- media-net
|
||||
ports:
|
||||
#- "6080:80/tcp" # [播流]HTTP 安全考虑-非测试阶段需要注释掉,改为由nginx代理播流地址
|
||||
- "80:80/tcp" # [播流]HTTP 安全考虑-非测试阶段需要注释掉,改为由nginx代理播流地址
|
||||
#- "4443:443/tcp" # [播流]HTTPS 安全考虑-非测试阶段需要注释掉,改为由nginx代理播流地址
|
||||
- "${MediaRtmp:-10935}:${MediaRtmp:-10935}/tcp" # [收流]RTMP
|
||||
- "${MediaRtmp:-10935}:${MediaRtmp:-10935}/udp" # [收流]RTMP
|
||||
|
||||
@ -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