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服务
[base_config]
allow_stream_start_by_url=0