LiveNVR获取通道视频直播流地址 RTSP/WebRTC/RTMP/HLS/HTTP-FLV/WS-FLV
1、静态流地址
不调用开始直播可以获取播放地址吗?可以的,LiveNVR支持流地址播放直接启动通道拉流,配置规则如下:
HTTP端口直播流地址格式
- WEBRTC: webrtc://{ip}:{port}/rtc/stream_{通道号}
- FLV: http://{ip}:{port}/flv/hls/stream_{通道号}.flv
- WS_FLV: ws://{ip}:{port}/ws-flv/hls/stream_{通道号}.flv
- HLS: http://{ip}:{port}/hls/stream_{通道号}/stream_{通道号}_live.m3u8
- RTMP: rtmp://{ip}:{port}/hls/stream_{通道号}
- RTSP: rtsp://{ip}:{port}/stream_{通道号}
HTTPS端口直播流地址格式
- WEBRTC: webrtc://{ip}:{port}/rtc/stream_{通道号}
- FLV: http://{ip}:{port}/flv/hls/stream_{通道号}.flv
- WS_FLV: ws://{ip}:{port}/ws-flv/hls/stream_{通道号}.flv
- HLS: http://{ip}:{port}/hls/stream_{通道号}/stream_{通道号}_live.m3u8
- RTMP: rtmp://{ip}:{port}/hls/stream_{通道号}
- RTSP: rtsp://{ip}:{port}/stream_{通道号}
2、关闭静态流地址播放
livenvr.ini ->[base_config]->allow_stream_start_by_url=0 , 默认是开启此功能的,配置后重启LiveNVR服务
3、RTSP/HLS/FLV/RTMP拉流Onvif流媒体服务