# HG changeset patch # User Nicholas Jillings # Date 1450348506 0 # Node ID f69ec262337aa9be015c0cad413960c39ae25b8d # Parent a75a4e0af44fec4302a1c0f3a2ec9d1e3bc40604 Audio fragment buffer pool objects have loading progress element diff -r a75a4e0af44f -r f69ec262337a core.js --- a/core.js Wed Dec 16 14:00:11 2015 +0000 +++ b/core.js Thu Dec 17 10:35:06 2015 +0000 @@ -803,6 +803,14 @@ } }); }; + this.progress = 0; + this.progressCallback = function(event){ + if (event.lengthComputable) + { + this.progress = event.loaded / event.total; + } + }; + this.xmlRequest.addEventListener("progress", this.progressCallback); this.xmlRequest.send(); }; };