# HG changeset patch # User Nicholas Jillings # Date 1450348506 0 # Node ID 12abf9c61949add1ac2dd83ecfaf958f4cc35af9 # Parent 6be81817d1420c9f21e15b73e8642434552376eb Audio fragment buffer pool objects have loading progress element diff -r 6be81817d142 -r 12abf9c61949 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(); }; };