From 5a5eda023dcc2a69583e731d67b89b0f4503c1d7 Mon Sep 17 00:00:00 2001 From: zilongshanren Date: Tue, 16 Aug 2016 15:36:16 +0800 Subject: [PATCH] improve videoPlayer --- cocos2d/core/components/CCVideoPlayer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocos2d/core/components/CCVideoPlayer.js b/cocos2d/core/components/CCVideoPlayer.js index f7d78ff1bc..e7044779d3 100644 --- a/cocos2d/core/components/CCVideoPlayer.js +++ b/cocos2d/core/components/CCVideoPlayer.js @@ -164,6 +164,7 @@ var VideoPlayer = cc.Class({ if(this._sgNode) { return this._sgNode.currentTime(); } + return -1; } }, @@ -327,6 +328,7 @@ var VideoPlayer = cc.Class({ if(this._sgNode) { this._sgNode.duration(); } + return -1; }, /**