# 添加
# 功能描述
- 添加视频融合(当模型看不见时,视频会自动断掉,可见时,会自动开启)(注意:模型是需要美术人员提前放入场景中)
# 请求方式
gisTwin.UEAPI("VideoFusion", "Add", jsondata, (e) => {
console.log(e); //成功、失败回调
});
# 数据格式
let jsondata = {
id: "VF_66", //唯一值
tag: "VF_66", //模型上的tag
url: "rtmp://192.168.10.35:1935/myapp/18", //视频的地址
video_fps: 24, //视频的帧数
range: 2, //播放距离(米)
mode: "play", //播放模式:play stop
reconnection: true //断线重连
};
# 更新
# 功能描述
- 更新视频融合
# 请求方式
gisTwin.UEAPI("VideoFusion", "Update", jsondata, (e) => {
console.log(e); //成功、失败回调
});
# 数据格式
let jsondata = {
id: "VF_66", //唯一值
tag: "VF_66", //模型上的tag
url: "rtmp://192.168.10.35:1935/myapp/18", //视频的地址
video_fps: 24, //视频的帧数
range: 2, //播放距离(米)
mode: "play", //播放模式:play stop
reconnection: true //断线重连
};
# 删除
# 功能描述
- 删除视频融合
# 请求方式
gisTwin.UEAPI("VideoFusion", "Delete", jsondata, (e) => {
console.log(e); //成功、失败回调
});
# 数据格式
let jsondata = {
ids: ["VideoFusion"]
};
# 清除
# 功能描述
- 清除所有视频融合
# 请求方式
gisTwin.UEAPI("VideoFusion", "ClearAll", jsondata, (e) => {
console.log(e); //成功、失败回调
});
# 数据格式
let jsondata = {};