Appearance
videoMaterial
VideoMaterial
Kind: global class
new VideoMaterial(viewer, opts)
视频材质 在三维场景中,将视频材质赋予指定位置
Param | Type | Description |
---|---|---|
viewer | Viewer | 场景类 |
opts | object | 参数 |
videoMaterial.play()
播放该视频
Kind: instance method of VideoMaterial
videoMaterial.stop()
停止该视频,url 为视频封面图片地址。如果参数不为空,则视频停止后换图片,可以为空。
Kind: instance method of VideoMaterial
videoMaterial.repeat(n1, n2)
是否上下左右翻转。x 轴 1 或-1,y 轴 1 或-1
Kind: instance method of VideoMaterial
Param | Type | Description |
---|---|---|
n1 | number | - x 轴 1 或者-1 |
n2 | number | - y 轴 1 或者-1 |