webpackJsonpjwplayer([5],{12:function(t,e,i){var n,a;n=[i(1),i(13),i(2),i(19),i(18)],a=function(t,e,i,n,a){function s(e){if(this._currentTextTrackIndex=-1,e){if(this._textTracks?(this._textTracks=t.reject(this._textTracks,function(t){if(this.renderNatively&&"nativecaptions"===t._id)return delete this._tracksById[t._id],!0},this),delete this._tracksById.nativemetadata):this._initTextTracks(),e.length){var n=0,s=e.length;for(n;nthis._textTracks.length)return!0;for(var e=0;e1&&(i=v(C,t.level.index+1)),t.level=e.extend(t.level,{index:i}),t.reason=t.reason||"api",this.trigger("visualQuality",t),this.trigger("providerFirstFrame",{})},this),x.on(i.JWPLAYER_PROVIDER_CHANGED,function(t){m=t.message,this.trigger(i.JWPLAYER_PROVIDER_CHANGED,t)},this),x.on(i.JWPLAYER_ERROR,function(t){this.trigger(i.JWPLAYER_MEDIA_ERROR,t)},this),x.on("subtitlesTracks",function(t){this.addTextTracks(t.tracks)},this),x.on("subtitlesTrackData",function(t){this.addCuesToTrack(t)},this),x.on(i.JWPLAYER_MEDIA_META,function(t){t&&(t.metadata&&"textdata"===t.metadata.type?this.addCaptionsCue(t.metadata):this.trigger(t.type,t))},this),u(h)&&x.on("throttle",function(t){_(),"resume"===t.state?r.trigger.call(L,"flashThrottle",t):E=setTimeout(function(){r.trigger.call(L,"flashThrottle",t)},250)},this)}},remove:function(){p=-1,C=null,a.remove(x)},setVisibility:function(t){t=!!t,g.style.opacity=t?1:0},resize:function(t,e,i){i&&R("stretch",i)},setControls:function(t){R("setControls",t)},setFullscreen:function(t){A=t,R("fullscreen",t)},getFullScreen:function(){return A},setCurrentQuality:function(t){R("setCurrentQuality",C[t].index)},getCurrentQuality:function(){return p},setSubtitlesTrack:function(t){R("setSubtitlesTrack",t)},getName:function(){return m?{name:"flash_"+m}:{name:"flash"}},getQualityLevels:function(){return C||y&&y.sources},getAudioTracks:function(){return b},getCurrentAudioTrack:function(){return I},setCurrentAudioTrack:function(t){R("setCurrentAudioTrack",t)},destroy:function(){_(),this.remove(),x&&(x.off(),x=null),g=null,y=null,this.off()}})}var h=0,l=function(){};return l.prototype=s,o.prototype=new l,o.getName=function(){return{name:"flash"}},o}.apply(e,n),!(void 0!==a&&(t.exports=a))}});