Skip to content

Commit

Permalink
Screw debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Amos Wenger committed Jun 17, 2011
1 parent 4c865f6 commit c0d6d33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mhd.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function onSeek(percentage) {
}

function onProgress(current, total, preload) {
console.log("current = " + current + ", total = " + total);
//console.log("current = " + current + ", total = " + total);
var preloadbar = document.getElementById('preloadbar');
preloadbar.style.width = (preload * 360) + 'px';
var progressbar = document.getElementById('progressbar');
Expand Down
4 changes: 2 additions & 2 deletions src/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ Mad.Player.prototype.progress = function () {
}

var playtime = ((this.absoluteFrameIndex * 1152 + this.offset) / this.sampleRate) + delta / 1000.0;
console.log("delta = " + delta + ", contentLength = " + this.stream.state.contentLength + ", this.offset = " + this.mpeg.this_frame);
//console.log("delta = " + delta + ", contentLength = " + this.stream.state.contentLength + ", this.offset = " + this.mpeg.this_frame);
var total = playtime * this.stream.state.contentLength / this.mpeg.this_frame;
var preloaded = this.stream.state.amountRead / this.stream.state.contentLength;
console.log("amountRead = " + this.stream.state.amountRead + ", preloaded = " + preloaded);
//console.log("amountRead = " + this.stream.state.amountRead + ", preloaded = " + preloaded);
this.onProgress(playtime, total, preloaded);

var that = this;
Expand Down

0 comments on commit c0d6d33

Please sign in to comment.