# HG changeset patch # User Nicholas Jillings # Date 1450369789 0 # Node ID 801e1977ab55dd8049c8f8f44ebceb6afe1e61cd # Parent 57a3cbf90e01170d75f82e5cced66d34bf9a5d00 MUSHRA: Loading progress feedback diff -r 57a3cbf90e01 -r 801e1977ab55 core.js --- a/core.js Thu Dec 17 16:10:58 2015 +0000 +++ b/core.js Thu Dec 17 16:29:49 2015 +0000 @@ -767,6 +767,7 @@ this.url = null; this.buffer = null; this.xmlRequest = new XMLHttpRequest(); + this.xmlRequest.parent = this; this.users = []; this.getMedia = function(url) { this.url = url; @@ -807,7 +808,17 @@ this.progressCallback = function(event){ if (event.lengthComputable) { - this.progress = event.loaded / event.total; + this.parent.progress = event.loaded / event.total; + for (var i=0; i