diff --git a/midp/media.js b/midp/media.js index dce63d24..ab3aa780 100644 --- a/midp/media.js +++ b/midp/media.js @@ -361,8 +361,10 @@ ImagePlayer.prototype.realize = function() { this.image.src = URL.createObjectURL(new Blob([ imgData ])); }).bind(this)); } else { + this.image.onload = function() { + resolve(true); + }; this.image.src = this.url; - resolve(true); } }).bind(this)); }