VideoPlayer.EventType 枚举

模块: cc 父模块: cc

视频事件类型

索引

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

Details

PLAYING

播放

meta description
类型 Number
定义于 cocos2d/core/components/CCVideoPlayer.js:33
PAUSED

暂停

meta description
类型 Number
定义于 cocos2d/core/components/CCVideoPlayer.js:38
STOPPED

停止

meta description
类型 Number
定义于 cocos2d/core/components/CCVideoPlayer.js:43
COMPLETED

播放结束

meta description
类型 Number
定义于 cocos2d/core/components/CCVideoPlayer.js:48
META_LOADED

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

meta description
类型 Number
定义于 cocos2d/core/components/CCVideoPlayer.js:53
CLICKED

视频被用户点击了

meta description
类型 Number
定义于 cocos2d/core/components/CCVideoPlayer.js:58
READY_TO_PLAY

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

meta description
类型 Number
定义于 cocos2d/core/components/CCVideoPlayer.js:63

results matching ""

    No results matching ""