Mercurial > hg > webaudioevaluationtool
diff mushra.js @ 759:801e1977ab55
MUSHRA: Loading progress feedback
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Thu, 17 Dec 2015 16:29:49 +0000 |
parents | 57a3cbf90e01 |
children | 01c026742e1e |
line wrap: on
line diff
--- a/mushra.js Thu Dec 17 16:10:58 2015 +0000 +++ b/mushra.js Thu Dec 17 16:29:49 2015 +0000 @@ -195,7 +195,7 @@ console.log('slider '+id+' moved to '+this.value+' ('+time+')'); }; - this.play.textContent = "Play"; + this.play.textContent = "Loading..."; this.play.value = audioObject.id; this.play.style.float = "left"; this.play.style.width = "100%"; @@ -211,6 +211,7 @@ this.enable = function() { this.play.disabled = false; + this.play.textContent = "Play"; $(this.slider).removeClass('track-slider-disabled'); }; @@ -229,6 +230,12 @@ this.holder.style.height = window.innerHeight-200 + 'px'; this.slider.style.height = window.innerHeight-250 + 'px'; } + this.updateLoading = function(progress) + { + progress = String(progress); + progress = progress.substr(0,5); + this.play.textContent = "Loading: "+progress+"%"; + } if (this.parent.state == 1) {