VideoPlayer.EventType Enum
Module: cc
Video event type
Index
- PLAYING
- PAUSED
- STOPPED
- COMPLETED
- META_LOADED
- CLICKED
- READY_TO_PLAY
Details
PLAYING
play
| meta | description | 
|---|---|
| Type | Number | 
| Defined in | cocos2d/videoplayer/CCVideoPlayer.js:37 | 
PAUSED
pause
| meta | description | 
|---|---|
| Type | Number | 
| Defined in | cocos2d/videoplayer/CCVideoPlayer.js:42 | 
STOPPED
stop
| meta | description | 
|---|---|
| Type | Number | 
| Defined in | cocos2d/videoplayer/CCVideoPlayer.js:47 | 
COMPLETED
play end
| meta | description | 
|---|---|
| Type | Number | 
| Defined in | cocos2d/videoplayer/CCVideoPlayer.js:52 | 
META_LOADED
meta data is loaded
| meta | description | 
|---|---|
| Type | Number | 
| Defined in | cocos2d/videoplayer/CCVideoPlayer.js:57 | 
CLICKED
clicked by the user
| meta | description | 
|---|---|
| Type | Number | 
| Defined in | cocos2d/videoplayer/CCVideoPlayer.js:62 | 
READY_TO_PLAY
ready to play, this event is not guaranteed to be triggered on all platform or browser, please don't rely on it to play your video.
| meta | description | 
|---|---|
| Type | Number | 
| Defined in | cocos2d/videoplayer/CCVideoPlayer.js:67 | 
