# HG changeset patch # User Nicholas Jillings # Date 1450369789 0 # Node ID c22ce754b42601f69a2a1520dae1b7b3312d18e6 # Parent e2543b2ea92cba20fa59ac60ef1c7189cc48c6f9 MUSHRA: Loading progress feedback diff -r e2543b2ea92c -r c22ce754b426 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