# 设置幕布播放源

Dandelion.RtAPI("setVideoPannelSource", params, (res) => {
  console.log(res);
});

# 功能描述

为幕布添加视频地址,且支持设定播放方式、视频类型

# 请求参数格式

let params = {
  id: "",
  urls: [], //视频地址列表
  useInsectModel: true, //是否启用碰撞体
  videoStreamType: 0,
};

# 请求参数

参数名称 参数说明 是否必须 数据类型 效果展示
id id true String
urls 视频地址列表 false Array
useInsectModel 是否启用碰撞体 true Boolean 设置建筑显隐
videoStreamType 播放流类型:1 直播、2 历史,默认 1 true Boolean