Permalink
Browse files

Call PLAYDAR.updateLoadProgress.call when switching back to a playlist

  • Loading branch information...
1 parent 7d93a19 commit b8b780910b42a4ed4bc692f7b85ee6974bb4a718 @jwheare committed Dec 14, 2009
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/js/controllers/playlist.controller.js
  2. +1 −1 src/js/main/playdar.js
@@ -169,6 +169,7 @@ Playlist.prototype = {
var nowPlayingSound = Playdar.player.getNowPlaying();
if (nowPlayingSound) {
PLAYDAR.updatePlaybackProgress.call(nowPlayingSound);
+ PLAYDAR.updateLoadProgress.call(nowPlayingSound);
}
});
// Resolve tracks with Playdar
View
@@ -500,7 +500,7 @@ var PLAYDAR = {
loading.width(loaded + "%");
}
if (this.options.external) {
- PLAYDAR.updateStreamDuration(this.sID, this.durationEstimate, true);
+ PLAYDAR.updateStreamDuration(this.sID, this.durationEstimate, loaded < 100);
}
},
updateStreamDuration: function (sid, duration, estimate) {

0 comments on commit b8b7809

Please sign in to comment.