diff --git a/mhd.js b/mhd.js index 736cf0f..459c803 100644 --- a/mhd.js +++ b/mhd.js @@ -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'); diff --git a/src/player.js b/src/player.js index 33e86e9..fca8e13 100644 --- a/src/player.js +++ b/src/player.js @@ -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;