• VideoPlayer.EventType 枚举
  • 索引
  • Details
    • PLAYING
    • PAUSED
    • STOPPED
    • COMPLETED
    • META_LOADED
    • CLICKED
    • READY_TO_PLAY

    VideoPlayer.EventType 枚举

    模块: cc

    视频事件类型

    索引

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

    Details

    PLAYING
    播放
    metadescription
    类型Number
    定义于cocos2d/videoplayer/CCVideoPlayer.js:37
    PAUSED
    暂停
    metadescription
    类型Number
    定义于cocos2d/videoplayer/CCVideoPlayer.js:42
    STOPPED
    停止
    metadescription
    类型Number
    定义于cocos2d/videoplayer/CCVideoPlayer.js:47
    COMPLETED
    播放结束
    metadescription
    类型Number
    定义于cocos2d/videoplayer/CCVideoPlayer.js:52
    META_LOADED
    视频的元信息已加载完成,你可以调用 getDuration 来获取视频总时长
    metadescription
    类型Number
    定义于cocos2d/videoplayer/CCVideoPlayer.js:57
    CLICKED
    视频被用户点击了
    metadescription
    类型Number
    定义于cocos2d/videoplayer/CCVideoPlayer.js:62
    READY_TO_PLAY
    视频准备好了,这个事件并不保障会在所有平台或浏览器中被触发,它依赖于平台实现,请不要依赖于这个事件做视频播放的控制。
    metadescription
    类型Number
    定义于cocos2d/videoplayer/CCVideoPlayer.js:67