Appearance
批量更新视频幕布播放及显隐
js
// 视频幕布id列表
const guids = ['a', 'b', 'c']
// 显示隐藏状态 true显示 false隐藏
const show = true
// 视频状态,0播放、1停止、2暂停、3恢复、8偏移播放时间、9设置倍速播放
const playType = 1
// 进行录像播放时的播放速度,只支持整数,范围从-8 - 8
const playSpeed = 1
const params = {
guids: guids,
objectData: {
displayModel: show,
elementData: {
_opType: playType,
_playSpeed: playSpeed
}
}
}
cloudObj.RtAPI("updateVideoPannesBatch", params, (res) => {
console.log(res);
});1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
