From 7f35eaaaabd59b2b91f4079cafb60ff5509a693c Mon Sep 17 00:00:00 2001 From: VisualSJ Date: Fri, 22 Jul 2016 14:15:36 +0800 Subject: [PATCH] video event --- cocos2d/core/videoplayer/CCSGVideoPlayer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cocos2d/core/videoplayer/CCSGVideoPlayer.js b/cocos2d/core/videoplayer/CCSGVideoPlayer.js index 4dc4b8bfe2..5b184097ff 100644 --- a/cocos2d/core/videoplayer/CCSGVideoPlayer.js +++ b/cocos2d/core/videoplayer/CCSGVideoPlayer.js @@ -188,10 +188,10 @@ cc.game.on(cc.game.EVENT_SHOW, function () { * @type {{PLAYING: string, PAUSED: string, STOPPED: string, COMPLETED: string}} */ _ccsg.VideoPlayer.EventType = { - PLAYING: "play", - PAUSED: "pause", - STOPPED: "stop", - COMPLETED: "complete" + PLAYING: 0, + PAUSED: 1, + STOPPED: 2, + COMPLETED: 3 }; (function (video) {