',t.appendChild(n),t.appendChild(a),t.appendChild(i),paella.messageBox.showError(t.innerHTML)}});else{var i=document.createElement("div"),r=document.createElement("h3");r.innerHTML=base.dictionary.translate("Flash player needed");var o=document.createElement("div");o.innerHTML=base.dictionary.translate("You need at least Flash player 9 installed.")+"
',i.appendChild(r),i.appendChild(o),i.appendChild(s),paella.messageBox.showError(i.innerHTML)}return $("#"+a.id)[0]},_deferredAction:function(e){var t=this;return new Promise(function(n,a){t.ready?n(e()):$(t.swfContainer).bind("paella:flashvideoready",function(){t._ready=!0,n(e())})})},_getQualityObject:function(e,t){return{index:e,res:t.res,src:t.src,toString:function(){return this.res.w+"x"+this.res.h},shortLabel:function(){return this.res.h+"p"},compare:function(e){return this.res.w*this.res.h-e.res.w*e.res.h}}},getVideoData:function(){var e=this,t=this;return new Promise(function(n,a){e._deferredAction(function(){var e={duration:t.flashVideo.duration(),currentTime:t.flashVideo.getCurrentTime(),volume:t.flashVideo.getVolume(),paused:t._paused,ended:t._ended,res:{w:t.flashVideo.getWidth(),h:t.flashVideo.getHeight()}};n(e)})})},setPosterFrame:function(e){if(null==this._posterFrame){this._posterFrame=e;var t=document.createElement("img");t.src=e,t.className="videoPosterFrameImage",t.alt="poster frame",this.domElement.appendChild(t),this._posterFrameElement=t}},setAutoplay:function(e){this._autoplay=e},load:function(){var e=this._stream.sources.rtmp;null===this._currentQuality&&this._videoQualityStrategy&&(this._currentQuality=this._videoQualityStrategy.getQualityIndex(e));var t=this._currentQuality
',t.appendChild(n),t.appendChild(a),t.appendChild(i),paella.messageBox.showError(t.innerHTML)}});else{var i=document.createElement("div"),r=document.createElement("h3");r.innerHTML=base.dictionary.translate("Flash player needed");var o=document.createElement("div");o.innerHTML=base.dictionary.translate("You need at least Flash player 9 installed.")+"
',i.appendChild(r),i.appendChild(o),i.appendChild(s),paella.messageBox.showError(i.innerHTML)}return $("#"+a.id)[0]},_deferredAction:function(e){var t=this;return new Promise(function(n,a){t.ready?n(e()):$(t.swfContainer).bind("paella:flashvideoready",function(){t._ready=!0,n(e())})})},_getQualityObject:function(e,t){return{index:e,res:t.res,src:t.src,toString:function(){return this.res.w+"x"+this.res.h},shortLabel:function(){return this.res.h+"p"},compare:function(e){return this.res.w*this.res.h-e.res.w*e.res.h}}},getVideoData:function(){var e=this,t=this;return new Promise(function(n,a){e._deferredAction(function(){var e={duration:t.flashVideo.duration(),currentTime:t.flashVideo.getCurrentTime(),volume:t.flashVideo.getVolume(),paused:t._paused,ended:t._ended,res:{w:t.flashVideo.getWidth(),h:t.flashVideo.getHeight()}};n(e)})})},setPosterFrame:function(e){if(null==this._posterFrame){this._posterFrame=e;var t=document.createElement("img");t.src=e,t.className="videoPosterFrameImage",t.alt="poster frame",this.domElement.appendChild(t),this._posterFrameElement=t}},setAutoplay:function(e){this._autoplay=e},load:function(){var e=this._stream.sources.rtmp;null===this._currentQuality&&this._videoQualityStrategy&&(this._currentQuality=this._videoQualityStrategy.getQualityIndex(e));var t=this._currentQuality