Skip to content
On this page

videoMaterial

VideoMaterial

Kind: global class

new VideoMaterial(viewer, opts)

视频材质 在三维场景中,将视频材质赋予指定位置

ParamTypeDescription
viewerViewer场景类
optsobject参数

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

ParamTypeDescription
n1number- x 轴 1 或者-1
n2number- y 轴 1 或者-1