猿大师支持动态改变分屏的数量及播放的的RTSP视频流内容,可以通过下面命令来实现。
体验参考链接:http://test.yuanmaster.com/vlc/#/
39) 动态改变分屏数量或播放内容
ShowType 指定分屏数量,如果不变就不设置
ForceDestroy VLC4.0且独立进程播放时默认1,其它时候默认0,指定0时切换播放不销毁原有控件
Play 重新指定播放内容:Uri中如果有特殊字符= & 双引号或中文等,需要用URL编码处理后传递 Uri如非本地全路径,默认使用中间件程序Data子目录作为根目录使用
请求范例1:{"req":"VLC_ChangePlay","aid"::79,"para":{"ShowType":2}}
请求范例2:{"req":"VLC_ChangePlay","aid"::79,"para":{"Play":[{"ID":1,"Uri":"rtsp://wzh:test123456@192.168.1.8:554/h264/ch1/main/av_stream","Name":"BrowserApplet1","Option":":rtsp-tcp"},{"ID":2,"Uri":"http://www.yuanmaster.com/Files/RTSP.mp4","Name":"BrowserApplet2","Option":":file-caching=300"}]}}
请求范例3:{"req":"VLC_ChangePlay","aid"::79,"para":{"ShowType":3,"ForceDestroy":0,"Play":[{"ID":1,"Uri":"rtsp://wzh:test123456@192.168.1.8:554/h264/ch1/main/av_stream","Name":"BrowserApplet1","Option":":rtsp-tcp :network-caching=300"},{"ID":2,"Uri":"http://www.yuanmaster.com/Files/RTSP.mp4","Name":"BrowserApplet2","Option":":file-caching=400"},{"ID":3,"Uri":"rtsp://wzh:test123456@192.168.1.8:554/h264/ch1/main/av_stream","Name":"BrowserApplet3","Option":":rtsp-tcp"}]}}
分别返回:{"ret":0,"aid"::80,"data":{"Ret":0,"Play":[]}}