VideoPlayer.EventType 枚举

模块: cc

视频事件类型

索引

  • PLAYING
  • PAUSED
  • STOPPED
  • COMPLETED
  • META_LOADED
  • CLICKED
  • READY_TO_PLAY

Details

PLAYING

播放

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCVideoPlayer.js:32
PAUSED

暂停

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCVideoPlayer.js:37
STOPPED

停止

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCVideoPlayer.js:42
COMPLETED

播放结束

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCVideoPlayer.js:47
META_LOADED

视频的元信息已加载完成,你可以调用 getDuration 来获取视频总时长

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCVideoPlayer.js:52
CLICKED

视频被用户点击了

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCVideoPlayer.js:57
READY_TO_PLAY

视频准备好了,可以开始播放了

meta description
类型 Number
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCVideoPlayer.js:62

条与 "" 相匹配的结果

    没有与 "" 匹配的结果