VideoElement

VideoElement

new VideoElement(data)

Source:
Parameters:
Name Type Description
data Object

视频元素数据

Members

blend :string

混合模式

Source:
Type:
  • string

flip :string

视频元素翻转模式

Source:
Type:
  • string

loop

视频循环播放开关

Source:

playbackRate

视频播放速度

Source:

player :HTMLVideoElement

HTML视频元素(影子元素)

Source:
Type:
  • HTMLVideoElement

state :string

视频元素当前播放状态

Source:
Type:
  • string

texture :Texture

视频元素纹理

Source:
Type:

video :string

视频文件ID

Source:
Type:
  • string

Methods

connect()

连接视频元素

Source:

continue()

继续播放视频

Source:

createVideoFrameUpdater()

创建视频帧更新器

Source:

destroy()

销毁视频元素

Source:

disconnect()

断开视频元素

Source:

draw()

绘制视频元素

Source:

onEnded()

设置视频播放结束回调

Source:

pause()

暂停播放视频

Source:

resize()

重新调整视频元素

Source: