Skip to content

Commit

Permalink
fix videoplay unable to trigger VideoPlayerImpl.EventType.COMPLETED e…
Browse files Browse the repository at this point in the history
…vent (cocos#2968)
  • Loading branch information
knoxHuang authored and pandamicro committed Jul 11, 2018
1 parent 3d5e88d commit 9eb19d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos2d/videoplayer/video-player-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ let VideoPlayerImpl = cc.Class({
self._dispatchEvent(VideoPlayerImpl.EventType.META_LOADED);
};
cbs.ended = function () {
if (this._video !== video) return;
if (self._video !== video) return;
self._playing = false;
self._dispatchEvent(VideoPlayerImpl.EventType.COMPLETED);
};
Expand Down

0 comments on commit 9eb19d8

Please sign in to comment.