Skip to content

如何使用固定播放地址与自动点播

648540858 edited this page Jul 21, 2021 · 3 revisions

WVP支持使用固定播放地址与自动点播

前提: user-settings.auto-apply-play = true; media.rtp.enable = true

1. 固定播放地址

每次调用点播接口:/api/play/34020000002000000001/34020000001310000065(34020000002000000001为设备编号,34020000001310000065为通道编号)
返回结果包含流地址,
以其中的rtmp为例:rtmp://192.168.1.20:10935/rtp/gb_play_34020000002000000001_34020000001310000065,
这个地址每次的点播返回都是这个

2. 自动点播

假如我想观看设备34020000002000000001的通道34020000001310000065, 
那么我可以直接播放:rtmp://192.168.1.20:10935/rtp/gb_play_34020000002000000001_34020000001310000065。
wvp会自动发起点播
其他协议
flv	"http://192.168.1.20:6080/rtp/gb_play_34020000002000000001_34020000001310000065.flv"
fmp4	"http://192.168.1.20:6080/rtp/gb_play_34020000002000000001_34020000001310000065.live.mp4"
hls	"http://192.168.1.20:6080/rtp/gb_play_34020000002000000001_34020000001310000065/hls.m3u8"
rtmp	"rtmp://192.168.1.20:10935/rtp/gb_play_34020000002000000001_34020000001310000065"
rtsp	"rtsp://192.168.1.20:10554/rtp/gb_play_34020000002000000001_34020000001310000065"
ts	"http://192.168.1.20:6080/rtp/gb_play_34020000002000000001_34020000001310000065.live.ts"
ws_flv	"ws://192.168.1.20:6080/rtp/gb_play_34020000002000000001_34020000001310000065.flv"
ws_fmp4	"ws://192.168.1.20:6080/rtp/gb_play_34020000002000000001_34020000001310000065.live.mp4"
ws_hls	"ws://192.168.1.20:6080/rtp/gb_play_34020000002000000001_34020000001310000065/hls.m3u8"
ws_ts	"ws://192.168.1.20:6080/rtp/gb_play_34020000002000000001_34020000001310000065.live.ts"
Clone this wiki locally