Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix pause and resume bug.

  • Loading branch information...
commit 34c7da79e4dc5e2be9b09e37ae9d72f93bcb5ec5 1 parent 21b6926
Kevin Zhuang authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 vlc.js
View
5 vlc.js
@@ -416,7 +416,7 @@ YUI.add("vlc", function (Y) {
that.fire("stop");
},
pause: function () {
- _log("stop() is executed.");
+ _log("pause() is executed.");
var that = this,
object = that.get("object");
if (that._paused) {
@@ -439,8 +439,9 @@ YUI.add("vlc", function (Y) {
return;
}
object.playlist.togglePause();
- that._playTimer = Y.later(VLC.POLL_INTERVAL, that, that._poll, null, true);
+ that._playTimer = Y.later(VLC.POLL_INTERVAL, that, that._poll);
that.fire("resume");
+ that._set("state", "playing");
that._paused = false;
},
mute: function () {
Please sign in to comment.
Something went wrong with that request. Please try again.