# HG changeset patch # User Nicholas Jillings # Date 1450369789 0 # Node ID cfbe1252ff4cf4cbb8da26cef529b7f37f536caa # Parent 41054721d1368157db83fdd0aa0e0c6b449b0b28 MUSHRA: Loading progress feedback diff -r 41054721d136 -r cfbe1252ff4c 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