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; }, /**