You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
279 KiB
9 lines
279 KiB
1 year ago
|
!function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?exports.cyberplayer=b():a.cyberplayer=b()}(this,function(){return function(a){function b(c){if(d[c])return d[c].exports;var e=d[c]={exports:{},id:c,loaded:!1};return a[c].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c=window.webpackJsonpcyberplayer;window.webpackJsonpcyberplayer=function(d,f){for(var g,h,i=0,j=[];i<d.length;i++)h=d[i],e[h]&&j.push.apply(j,e[h]),e[h]=0;for(g in f)a[g]=f[g];for(c&&c(d,f);j.length;)j.shift().call(null,b)};var d={},e={0:0};return b.e=function(a,c){if(0===e[a])return c.call(null,b);if(void 0!==e[a])e[a].push(c);else{e[a]=[c];var d=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.src=b.p+""+({1:"flv"}[a]||a)+".js",d.appendChild(f)}},b.m=a,b.c=d,b.p="",b(0)}([function(a,b,c){c(36),c(35),c(37),a.exports=c(108)},function(a,b,c){var d,e;d=[],void 0!==(e=function(){var a={},b=Array.prototype,c=Object.prototype,d=Function.prototype,e=b.slice,f=b.concat,g=c.toString,h=c.hasOwnProperty,i=b.map,j=b.reduce,k=b.forEach,l=b.filter,m=b.every,n=b.some,o=b.indexOf,p=Array.isArray,q=Object.keys,r=d.bind,s=function z(a){return a instanceof z?a:this instanceof z?void 0:new z(a)},t=s.each=s.forEach=function(b,c,d){if(null==b)return b;if(k&&b.forEach===k)b.forEach(c,d);else if(b.length===+b.length){for(var e=0,f=b.length;e<f;e++)if(c.call(d,b[e],e,b)===a)return}else for(var g=s.keys(b),e=0,f=g.length;e<f;e++)if(c.call(d,b[g[e]],g[e],b)===a)return;return b};s.map=s.collect=function(a,b,c){var d=[];return null==a?d:i&&a.map===i?a.map(b,c):(t(a,function(a,e,f){d.push(b.call(c,a,e,f))}),d)};s.reduce=s.foldl=s.inject=function(a,b,c,d){var e=arguments.length>2;if(null==a&&(a=[]),j&&a.reduce===j)return d&&(b=s.bind(b,d)),e?a.reduce(b,c):a.reduce(b);if(t(a,function(a,f,g){e?c=b.call(d,c,a,f,g):(c=a,e=!0)}),!e)throw new TypeError("Reduce of empty array with no initial value");return c},s.find=s.detect=function(a,b,c){var d;return u(a,function(a,e,f){if(b.call(c,a,e,f))return d=a,!0}),d},s.filter=s.select=function(a,b,c){var d=[];return null==a?d:l&&a.filter===l?a.filter(b,c):(t(a,function(a,e,f){b.call(c,a,e,f)&&d.push(a)}),d)},s.reject=function(a,b,c){return s.filter(a,function(a,d,e){return!b.call(c,a,d,e)},c)},s.compact=function(a){return s.filter(a,s.identity)},s.every=s.all=function(b,c,d){c||(c=s.identity);var e=!0;return null==b?e:m&&b.every===m?b.every(c,d):(t(b,function(b,f,g){if(!(e=e&&c.call(d,b,f,g)))return a}),!!e)};var u=s.some=s.any=function(b,c,d){c||(c=s.identity);var e=!1;return null==b?e:n&&b.some===n?b.some(c,d):(t(b,function(b,f,g){if(e||(e=c.call(d,b,f,g)))return a}),!!e)};s.size=function(a){return null==a?0:a.length===+a.length?a.length:s.keys(a).length},s.last=function(a,b,c){if(null!=a)return null==b||c?a[a.length-1]:e.call(a,Math.max(a.length-b,0))},s.after=function(a,b){return function(){if(--a<1)return b.apply(this,arguments)}},s.before=function(a,b){var c;return function(){return--a>0&&(c=b.apply(this,arguments)),a<=1&&(b=null),c}};var v=function(a){return null==a?s.identity:s.isFunction(a)?a:s.property(a)},w=function(a){return function(b,c,d){var e={};return c=v(c),t(b,function(f,g){var h=c.call(d,f,g,b);a(e,h,f)}),e}};s.groupBy=w(function(a,b,c){s.has(a,b)?a[b].push(c):a[b]=[c]}),s.indexBy=w(function(a,b,c){a[b]=c}),s.sortedIndex=function(a,b,c,d){c=v(c);for(var e=c.call(d,b),f=0,g=a.length;f<g;){var h=f+g>>>1;c.call(d,a[h])<e?f=h+1:g=h}return f};var u=s.some=s.any=function(b,c,d){c||(c=s.identity);var e=!1;return null==b?e:n&&b.some===n?b.some(c,d):(t(b,function(b,f,g){if(e||(e=c.call(d,b,f,g)))return a}),!!e)};s.contains=s.include=function(a,b){return null!=a&&(a.length!==+a.length&&(a=s.values(a)),s.indexOf(a,b)>=0)},s.pluck=function(a,b){return s.map(a,s.property(b))},s.where=function(a,b){return s.filter(a,s.matches(b))},s.findWhere=function(a,b){return s.find(a,s.matches(b))},s.max=function(a,b,c){if(!b&&s.isArray(a)&&a[0]===+a[0]&&a.l
|
||
|
;case h.JWPLAYER_AUDIO_TRACK_CHANGED:this.setCurrentAudioTrack(b.currentTrack,b.tracks);break;case h.JWPLAYER_CONNECTING:this.trigger("connecting");break;case h.JWPLAYER_CONNECT_FAILD:this.trigger("connectFaild");break;case h.JWPLAYER_ALIVE:this.trigger("alive");break;case h.JWPLAYER_NO_LIVE_STREAM:this.trigger("noLiveStream");break;case h.JWPLAYER_LIVE_STOP:this.trigger("liveStop");break;case"stop":this.set("duration",0);break;case"subtitlesTrackChanged":this.setVideoSubtitleTrack(b.currentTrack,b.tracks);break;case"visualQuality":var g=e.extend({},b);this.mediaModel.set("visualQuality",g);break;case h.JWPLAYER_PLAYBACKRATE:this.set("playbackRate",b.playbackRate),this.mediaModel.set("playbackRate",b.playbackRate)}this.mediaController.trigger(a,c)}var k,m,n,o,p=this,q=a.noop;this.mediaController=e.extend({},f),this.mediaModel=new l,this.advManage=null,d.model(this),this.set("mediaModel",this.mediaModel),this.setup=function(b){return o=new c,e.extend(this.attributes,b,{item:0,state:i.IDLE,flashBlocked:!1,fullscreen:!1,compactUI:!1,scrubbing:!1,duration:0,position:0,buffer:0}),a.isMobile()&&!b.mobileSdk&&this.set("autostart",!1),this.get("imageAdvs")&&(this.advManage=new j(this.get("imageAdvs"))),this.updateProviders(),this},this.getConfiguration=function(){return e.omit(this.clone(),["mediaModel"])},this.updateProviders=function(){k=new b(this.getConfiguration())},this.recordMediaPosition=function(a,b){var c=n&&n.sources&&n.sources[0];c&&c.file&&!isNaN(a)&&!isNaN(b)&&b>0&&!1!==isFinite(b)&&e.each(n.sources,function(c){a<b&&a>2?o.setItem("filePostion."+c.file,a):a>=b&&o.clearItem("filePostion."+c.file)})},this.getLastPosition=function(b){var c=0;return b&&"array"===a.typeOf(b.sources)&&b.sources.length>0&&o.getItem("filePostion."+b.sources[0].file)&&(c=o.getItem("filePostion."+b.sources[0].file)),c},this.setQualityLevel=function(a,b){a>-1&&b.length>1&&this.mediaModel.set("currentLevel",parseInt(a))},this.setCurrentQuality=function(a){m.setCurrentQuality(a)},this.persistQualityLevel=function(a,b){var c=b[a]||{},d=c.label;this.set("qualityLabel",d)},this.setCurrentAudioTrack=function(a,b){a>-1&&b.length>0&&a<b.length&&this.mediaModel.set("currentAudioTrack",parseInt(a))},this.onMediaContainer=function(){var a=this.get("mediaContainer");q.setContainer(a)},this.changeVideoProvider=function(a){var b=function(){this.setVolume(this.get("volume"))};if(this.off("change:mediaContainer",this.onMediaContainer),m&&(m.off(null,null,this),m.getContainer()&&m.remove()),!a)return m=q=a,void this.set("provider",void 0);q=new a(p.get("id"),p.getConfiguration());var c=this.get("mediaContainer");c?q.setContainer(c):this.once("change:mediaContainer",this.onMediaContainer),this.once("change:provider",b,this),this.set("provider",q.getName()),-1===q.getName().name.indexOf("flash")&&(this.set("flashThrottle",void 0),this.set("flashBlocked",!1)),m=q,m.volume(p.get("volume")),m.mute(p.get("mute")),m.on("all",g,this)},this.destroy=function(){m&&(m.off(null,null,this),m.destroy())},this.getVideo=function(){return m},this.setFullscreen=function(a){(a=!!a)!==p.get("fullscreen")&&p.set("fullscreen",a)},this.chooseProvider=function(a){return k.choose(a).provider},this.setActiveItem=function(a){this.mediaModel.off(),this.mediaModel=new l,this.set("mediaModel",this.mediaModel),this.set("position",a.starttime||0),this.set("duration",a.duration||0),this.setProvider(a)},this.setProvider=function(a){var b=a&&a.sources&&a.sources[0];if(void 0!==b){n=a;var c=this.chooseProvider(b);c&&q instanceof c||p.changeVideoProvider(c),q&&(q.init&&q.init(a,this.attributes),this.trigger("itemReady",a))}},this.getCurrentItem=function(){return n},this.getProviders=function(){return k},this.resetProvider=function(){q=null},this.setVolume=function(a){a=Math.round(a),a=m&&"html5"===m.getName().name?Math.min(a,100):Math.min(a,500),p.set("volume",a),m&&m.volume(a);var b=0===a;b!==p.get("mute")&&p.setMute(b)},this.enableGPU=function(){m.enableGPU()},this.disableGPU=function(){m.disableGPU()},this.setToken=function(a){var b=[];"string"==typeof arguments[0]&&"string"==typeof arguments[
|
||
|
for(var i=[],j=0;j<e.length;j++)e[j]&&b.exists(e[j])&&"."!==e[j]&&(".."===e[j]?i.pop():i.push(e[j]));return f+g+"/"+i.join("/")}},e.getScriptPath=a.memoize(function(a){for(var b=document.getElementsByTagName("script"),c=0;c<b.length;c++){var d=b[c].src;if(d&&d.indexOf(a)>=0)return d.substr(0,d.indexOf(a))}return""}),e.parseXML=function(a){var b=null;try{"DOMParser"in window?(b=(new window.DOMParser).parseFromString(a,"text/xml"),(d(b.childNodes)||b.childNodes&&d(b.childNodes[0].childNodes))&&(b=null)):(b=new window.ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a))}catch(c){}return b},e.serialize=function(a){if(void 0===a)return null;if("string"==typeof a&&a.length<6){var b=a.toLowerCase();if("true"===b)return!0;if("false"===b)return!1;if(!isNaN(Number(a))&&!isNaN(parseFloat(a)))return Number(a)}return a},e.parseDimension=function(a){return"string"==typeof a?""===a?0:a.lastIndexOf("%")>-1?a:parseInt(a.replace("px",""),10):a},e.timeFormat=function(a,b){if(a<=0&&!b)return"00:00";var c=a<0?"-":"";a=Math.abs(a);var d=Math.floor(a/3600),e=Math.floor((a-3600*d)/60),f=Math.floor(a%60);return c+(d?d+":":"")+(e<10?"0":"")+e+":"+(f<10?"0":"")+f},e.adaptiveType=function(a){if(0!==a){if(a<=-120)return"DVR";if(a<0||a===1/0)return"LIVE"}return"VOD"},e}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[c(4),c(3),c(1)],void 0!==(e=function(a,b,c){var d={},e={NEW:0,LOADING:1,ERROR:2,COMPLETE:3},f=function(f,g){function h(b){k=e.ERROR,j.trigger(a.ERROR,b)}function i(b){k=e.COMPLETE,j.trigger(a.COMPLETE,b)}var j=c.extend(this,b),k=e.NEW;this.addEventListener=this.on,this.removeEventListener=this.off,this.makeStyleLink=function(a){var b=document.createElement("link");return b.type="text/css",b.rel="stylesheet",b.href=a,b},this.makeScriptTag=function(a){var b=document.createElement("script");return b.src=a,b},this.makeTag=g?this.makeStyleLink:this.makeScriptTag,this.load=function(){if(k===e.NEW){var b=d[f];if(b&&(k=b.getStatus())<2)return b.on(a.ERROR,h),void b.on(a.COMPLETE,i);var c=document.getElementsByTagName("head")[0]||document.documentElement,j=this.makeTag(f),l=!1;j.onload=j.onreadystatechange=function(a){l||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(l=!0,i(a),j.onload=j.onreadystatechange=null,c&&j.parentNode&&!g&&c.removeChild(j))},j.onerror=h,c.insertBefore(j,c.firstChild),k=e.LOADING,d[f]=this}},this.getStatus=function(){return k}};return f.loaderstatus=e,f}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e,f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};d=[c(1),c(8)],void 0!==(e=function(a,b){var c={};return c.exists=function(a){switch(void 0===a?"undefined":f(a)){case"string":return a.length>0;case"object":return null!==a;case"undefined":return!1}return!0},c.isHTTPS=function(){return 0===window.location.href.indexOf("https")},c.isRtmp=function(a,b){return a&&(0===a.indexOf("rtmp")||"rtmp"===b)},c.isHls=function(a,c){return a&&("m3u8"===b.extension(a)||"hls"===b.extension(a)||"hls"===c)},c.isFlv=function(a,c){return a&&("flv"===b.extension(a)||"flv"===c)},c.isMp4=function(a,c){return a&&("mp4"===b.extension(a)||"mp4"===c)},c.isHtml5Flv=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return c.isFlv(a,b)&&c.isFlvjsSupported()},c.isFlvjsSupported=function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')},c.isMutipleHls=function(b){if(a.isArray(b)&&b.length>1){var d=0;if(a.each(b,function(a){c.isHls(a.file,a.type)&&d++}),d===b.length)return!0}return!1},c.typeOf=function(b){if(null===b)return"null";var c=void 0===b?"undefined":f(b);return"object"===c&&a.isArray(b)?"array":c},c}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[c(64),c(9),c(176),c(2)],void 0!==(e=function(a,b,c,d){return a.extend({constructor:function(a,b){this.className=a+" jw-background-color jw-reset",this.orientation=b,this.dragStartListener=this.dragStart.bind(this)
|
||
|
b.push([a.id,".jw-reset{color:inherit;background-color:transparent;padding:0;margin:0;float:none;font-family:Arial,Helvetica,sans-serif;font-size:1em;line-height:1em;list-style:none;text-align:left;text-transform:none;vertical-align:baseline;border:0;direction:ltr;font-variant:inherit;font-stretch:inherit;-webkit-tap-highlight-color:rgba(255,255,255,0)}@font-face{font-family:jw-icons;src:url("+c(178)+") format('woff'),url("+c(179)+') format(\'truetype\');font-weight:400;font-style:normal}.jw-controlbar .jw-menu .jw-option:before,.jw-icon-display,.jw-icon-inline,.jw-icon-tooltip{font-family:jw-icons;-webkit-font-smoothing:antialiased;font-style:normal;font-weight:400;text-transform:none;background-color:transparent;font-variant:normal;-webkit-font-feature-settings:"liga";-ms-font-feature-settings:"liga" 1;-o-font-feature-settings:"liga";font-feature-settings:"liga";-moz-osx-font-smoothing:grayscale}.jw-icon-audio-tracks:before{content:"\\E600"}.jw-icon-buffer:before{content:"\\E601"}.jw-icon-cast:before{content:"\\E603"}.jw-icon-cast.jw-off:before{content:"\\E602"}.jw-icon-cc:before{content:"\\E605"}.jw-icon-cue:before,.jw-icon-menu-bullet:before{content:"\\E606"}.jw-icon-error:before{content:"\\E607"}.jw-icon-fullscreen:before{content:"\\E608"}.jw-icon-fullscreen.jw-off:before{content:"\\E613"}.jw-icon-hd:before{content:none}.jw-rightclick-logo:before,.jw-watermark:before{content:"\\E60B"}.jw-icon-next:before{content:"\\E60C"}.jw-icon-pause:before{content:"\\E60D"}.jw-icon-play:before{content:"\\E60E"}.jw-icon-prev:before{content:"\\E60F"}.jw-icon-replay:before{content:"\\E610"}.jw-icon-volume:before{content:"\\E612"}.jw-icon-volume.jw-off:before{content:"\\E611"}.jw-icon-more:before{content:"\\E614"}.jw-icon-close:before{content:"\\E615"}.jw-icon-playlist:before{content:"\\E616"}.jw-icon-barlogo:before{content:"\\E617"}.jw-icon-barlogo-new:before{content:"\\E618"}.jwplayer{width:100%;font-size:16px;position:relative;display:block;min-height:0;overflow:visible;box-sizing:border-box;font-family:Arial,Helvetica,sans-serif;background-color:#000;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jwplayer *{box-sizing:inherit}.jwplayer.jw-flag-aspect-mode{height:auto!important}.jwplayer.jw-flag-aspect-mode .jw-aspect{display:block}.jwplayer .jw-aspect{display:none}.jwplayer.jw-no-focus:focus,.jwplayer .jw-swf{outline:none}.jwplayer.jw-ie:focus{outline:1px dotted #585858}.jwplayer:hover .jw-display-icon-container{background-color:#333;background:#333;background-size:#333}.jw-adv,.jw-controls,.jw-media,.jw-overlays,.jw-preview{position:absolute;width:100%;height:100%;top:0;left:0;bottom:0;right:0}.jwplayer .jw-adv{background-size:100% 100%;cursor:pointer}.jwplayer .jw-adv .adv-countdown{position:absolute;width:95px;padding-left:10px;height:30px;line-height:30px;background-color:#202020;opacity:.7;color:#ee6002;font-size:14px;top:0;right:0;display:none}.jwplayer .jw-adv .adv-close{position:absolute;height:22px;line-height:22px;color:#fff;font-weight:700;font-size:14px;width:20px;top:0;right:5px;display:none;text-align:center}.jw-media{overflow:hidden;cursor:pointer}.jw-overlays{cursor:auto}.jw-media.jw-media-show{visibility:visible;opacity:1}.jw-controls.jw-controls-disabled{display:none}.jw-controls .jw-controls-right{position:absolute;top:0;right:0;left:0;bottom:2em}.jw-warning{color:red;top:30px;right:10px;position:absolute;z-index:10000;width:320px;display:none}.jw-warning a{color:#108cee}.jw-marquee{opacity:0;color:#fff;width:auto;font-size:16px;font-weight:700;white-space:nowrap;position:absolute}@-webkit-keyframes marquee1{0%{left:100%}to{left:-110px}}@keyframes marquee1{0%{left:100%}to{left:-110px}}@-webkit-keyframes marquee2{0%{left:100%}to{left:-110px}}@keyframes marquee2{0%{left:100%}to{left:-110px}}.jw-text{height:1em;font-family:Arial,Helvetica,sans-serif;font-size:.75em;font-style:normal;font-weight:400;color:#fff;text-align:center;font-variant:normal;font-stretch:normal}.jw-plugin{position:absolute;bottom:2.5em}.jw-plugin .jw-banner{max-width:100%;opac
|
||
|
},function(a,b,c){var d,e;d=[c(34),c(1)],void 0!==(e=function(a,b){return function(c,d){var e=["seek","skipAd","stop","playlistNext","playlistPrev","playlistItem","resize","addButton","removeButton","registerPlugin","attachMedia"];b.each(e,function(a){c[a]=function(){return d[a].apply(d,arguments),c}}),c.registerPlugin=a.registerPlugin}}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[c(1)],void 0!==(e=function(a){return function(b,c){var d=["buffer","controls","position","duration","fullscreen","volume","mute","item","stretching","playlist","captions","playbackRate"];a.each(d,function(a){var d=a.slice(0,1).toUpperCase()+a.slice(1);b["get"+d]=function(){return c._model.get(a)}});var e=["getAudioTracks","getCaptionsList","getWidth","getHeight","getCurrentAudioTrack","setCurrentAudioTrack","getCurrentCaptions","setCurrentCaptions","getCurrentQuality","setCurrentQuality","getQualityLevels","getVisualQuality","getConfig","getState","getSafeRegion","isBeforeComplete","isBeforePlay","getProvider","detachMedia"],f=["setControls","setKeyControls","setFullscreen","setVolume","enableGPU","disableGPU","setMute","setCues","setCaptions","setToken","setThumbnails","setPlaybackRate"];a.each(e,function(a){b[a]=function(){return c[a]?c[a].apply(c,arguments):null}}),a.each(f,function(a){b[a]=function(){return c[a].apply(c,arguments),b}}),b.getPlaylistIndex=b.getItem}}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[c(4),c(7),c(3),c(2),c(66),c(1),c(81),c(71),c(72),c(74),c(78),c(16)],void 0!==(e=function(a,b,c,d,e,f,g,h,i,j,k,l){return function(m,n){var o,p=this,q=!1,r={};f.extend(this,c),this.utils=d,this._=f,this.Events=c,this.version=l,this.trigger=function(a,b){return b=f.isObject(b)?f.extend({},b):{},b.type=a,window.jwplayer&&window.jwplayer.debug?c.trigger.call(p,a,b):c.triggerSafe.call(p,a,b)},this.dispatchEvent=this.trigger,this.removeEventListener=this.off.bind(this);var s=function(){o=new g(m),h(p,o),i(p,o),o.on(a.JWPLAYER_PLAYLIST_ITEM,function(){r={}}),o.on(a.JWPLAYER_MEDIA_META,function(a){f.extend(r,a)}),o.on(a.JWPLAYER_READY,function(a){q=!0,t.tick("ready"),a.setupTime=t.between("setup","ready"),new k(p.getConfig(),p).userCertify()}),o.on("all",p.trigger),o.on(a.JWPLAYER_ERROR,function(a){if("mediaError"===a.type&&d.isMp4(a.videoSrc)&&a.detail&&("DEMUXER_ERROR_COULD_NOT_OPEN: FFmpegDemuxer: open context failed"===a.detail.message||4===a.detail.code)){var b=p.getConfig().options;b.primary="justflash",o.setup(b,p)}})};s(),j(this),this.id=m.id;var t=this._qoe=new e;t.tick("init");var u=function(){q=!1,r={},p.off(),o&&o.off(),o&&o.playerDestroy&&o.playerDestroy()};return this.getPlugin=function(a){return p.plugins&&p.plugins[a]},this.addPlugin=function(a,b){this.plugins=this.plugins||{},this.plugins[a]=b,this.onReady(b.addToPlayer),b.resize&&this.onResize(b.resizeHandler)},this.setup=function(a){return t.tick("setup"),u(),s(),d.foreach(a.events,function(a,b){var c=p[a];"function"==typeof c&&c.call(p,b)}),a.id=p.id,o.setup(a,this),p},this.qoe=function(){var b=o.getItemQoe();return{setupTime:t.between("setup","ready"),firstFrame:b.between(a.JWPLAYER_MEDIA_PLAY_ATTEMPT,a.JWPLAYER_MEDIA_FIRST_FRAME),player:t.dump(),item:b.dump()}},this.getContainer=function(){return o.getContainer?o.getContainer():m},this.getMeta=this.getItemMeta=function(){return r},this.getPlaylistItem=function(a){if(!d.exists(a))return o._model.get("playlistItem");var b=p.getPlaylist();return b?b[a]:null},this.getRenderingMode=function(){return"html5"},this.load=function(a){var b=this.getPlugin("vast")||this.getPlugin("googima");return b&&b.destroy(),o.load(a),p},this.play=function(a,c){if(f.isBoolean(a)||(c=a),c||(c={reason:"external"}),!0===a)return o.play(c),p;if(!1===a)return o.pause(),p;switch(a=p.getState()){case b.PLAYING:o.pause();break;default:o.play(c)}return p},this.pause=function(a){return f.isBoolean(a)?this.play(!a):this.play()},this.createInstream=function(){return o.createInstream()},this.castToggle=function(){o&&o.castToggle&&o.castToggle()},this.playAd=this.pauseAd=d.noop,this.remove=function(){return n(p),p.trigger("remove"),u(),p
|
||
|
this.trigger(d.JWPLAYER_MEDIA_TIME,a)},this).on("instream:complete",function(a){this.trigger(d.JWPLAYER_MEDIA_COMPLETE,a)},this).on("instream:error",function(a){this.trigger(d.JWPLAYER_MEDIA_ERROR,a)},this),this.swf.triggerFlash("instream:init"),this.applyProviderListeners=function(a){this.model.on("change:volume",function(b,c){a.volume(c)},this),this.model.on("change:mute",function(b,c){a.mute(c)},this)}},instreamDestroy:function(){this._adModel&&(this.off(),this.swf.off(null,null,this),this.swf.triggerFlash("instream:destroy"),this.swf=null,this._adModel.off(),this._adModel=null,this.model=null)},load:function(a){this.swf.triggerFlash("instream:load",a)},instreamPlay:function(){this.swf.triggerFlash("instream:play")},instreamPause:function(){this.swf.triggerFlash("instream:pause")}},a),h}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[c(1),c(3),c(29),c(4),c(7),c(28)],void 0!==(e=function(a,b,c,d,e,f){return function(g,h){function i(b){var e=b||m.getVideo();if(n!==e){if(n=e,!e)return;e.off(),e.on("all",function(b,c){c=a.extend({},c,{type:b}),this.trigger(b,c)},o),e.on(d.JWPLAYER_MEDIA_BUFFER_FULL,l),e.on(d.JWPLAYER_PLAYER_STATE,j),e.attachMedia(),e.volume(h.get("volume")),e.mute(h.get("mute")),m.on("change:state",c,o)}}function j(a){switch(a.newstate){case e.PLAYING:m.set("state",a.newstate);break;case e.PAUSED:m.set("state",a.newstate)}}function k(a){h.trigger(a.type,a),o.trigger(d.JWPLAYER_FULLSCREEN,{fullscreen:a.jwstate})}function l(){m.getVideo().play()}var m,n,o=a.extend(this,b);return g.on(d.JWPLAYER_FULLSCREEN,function(a){this.trigger(d.JWPLAYER_FULLSCREEN,a)},o),this.init=function(){m=(new f).setup({id:h.get("id"),volume:h.get("volume"),fullscreen:h.get("fullscreen"),mute:h.get("mute")}),m.on("fullscreenchange",k),this._adModel=m},o.load=function(a){m.set("item",0),m.set("playlistItem",a),m.setActiveItem(a),i(),m.off(d.JWPLAYER_ERROR),m.on(d.JWPLAYER_ERROR,function(a){this.trigger(d.JWPLAYER_ERROR,a)},o),m.loadVideo(a)},o.applyProviderListeners=function(a){i(a),a.off(d.JWPLAYER_ERROR),a.on(d.JWPLAYER_ERROR,function(a){this.trigger(d.JWPLAYER_ERROR,a)},o),h.on("change:volume",function(a,b){n.volume(b)},o),h.on("change:mute",function(a,b){n.mute(b)},o)},this.instreamDestroy=function(){m&&(m.off(),this.off(),n&&(n.detachMedia(),n.off(),m.getVideo()&&n.destroy()),m=null,g.off(null,null,this),g=null)},o.instreamPlay=function(){m.getVideo()&&m.getVideo().play(!0)},o.instreamPause=function(){m.getVideo()&&m.getVideo().pause(!0)},o}}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[c(66),c(4),c(1)],void 0!==(e=function(a,b,c){function d(a){a.mediaController.off(b.JWPLAYER_MEDIA_PLAY_ATTEMPT,a._onPlayAttempt),a.mediaController.off(b.JWPLAYER_PROVIDER_FIRST_FRAME,a._triggerFirstFrame),a.mediaController.off(b.JWPLAYER_MEDIA_TIME,a._onTime)}function e(a){d(a),a._triggerFirstFrame=c.once(function(){var c=a._qoeItem;c.tick(b.JWPLAYER_MEDIA_FIRST_FRAME);var e=c.between(b.JWPLAYER_MEDIA_PLAY_ATTEMPT,b.JWPLAYER_MEDIA_FIRST_FRAME);a.mediaController.trigger(b.JWPLAYER_MEDIA_FIRST_FRAME,{loadTime:e}),d(a)}),a._onTime=g(a._triggerFirstFrame),a._onPlayAttempt=function(){a._qoeItem.tick(b.JWPLAYER_MEDIA_PLAY_ATTEMPT)},a.mediaController.on(b.JWPLAYER_MEDIA_PLAY_ATTEMPT,a._onPlayAttempt),a.mediaController.once(b.JWPLAYER_PROVIDER_FIRST_FRAME,a._triggerFirstFrame),a.mediaController.on(b.JWPLAYER_MEDIA_TIME,a._onTime)}function f(c){function d(c,d,f){c._qoeItem&&f&&c._qoeItem.end(f.get("state")),c._qoeItem=new a,c._qoeItem.tick(b.JWPLAYER_PLAYLIST_ITEM),c._qoeItem.start(d.get("state")),e(c),d.on("change:state",function(a,b,d){c._qoeItem.end(d),c._qoeItem.start(b)})}c.on("change:mediaModel",d)}var g=function(a){var b=Number.MIN_VALUE;return function(c){c.position>b&&a(),b=c.position}};return{model:f}}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[c(20),c(34),c(57),c(41),c(21),c(1),c(2),c(4),c(8),c(16)],void 0!==(e=function(a,b,d,e,f,g,h,i,j,k){function l(){return{LOAD_PROMISE_POLYFILL:{method:m,depends:[]},LOAD_BASE64_POLYFILL:{method:n,depends:[]},LOAD_JSON2:{method:o,depends:[]},LOADED_POLYFILLS:{method:u,depends:
|
||
|
g.appendChild(n,g);return n.className="jw-swf jw-reset",n.style.display="block",n.style.position="absolute",n.style.left=0,n.style.right=0,n.style.top=0,n.style.bottom=0,c.extend(n,b),n.queueCommands=!0,n.triggerFlash=function(b){var d=this;if("setup"!==b&&d.queueCommands||!d.__externalCall){for(var e=d.__commandQueue,g=e.length;g--;)e[g][0]===b&&e.splice(g,1);return e.push(Array.prototype.slice.call(arguments)),d}var i=Array.prototype.slice.call(arguments,1),j=a.tryCatch(function(){if(i.length){for(var a=i.length;a--;)"object"===f(i[a])&&c.each(i[a],h);var e=JSON.stringify(i);d.__externalCall(b,e)}else d.__externalCall(b)});return j instanceof a.Error&&(console.error(b,j),"setup"===b)?(j.name="Failed to setup flash",j):d},n.__commandQueue=[],n}function g(a){a&&a.parentNode&&(a.style.display="none",a.parentNode.removeChild(a))}function h(b,c,d){(a.isPoorIE()&&b&&b.childNodes||window.HTMLElement&&b instanceof window.HTMLElement)&&delete d[c]}var i="#000000";return{embed:e,remove:g}}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[],void 0!==(e=function(){return{hasClass:function(a,b){var c=" "+b+" ";return 1===a.nodeType&&(" "+a.className+" ").replace(/[\t\r\n\f]/g," ").indexOf(c)>=0}}}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[c(21),c(1),c(42),c(40),c(16)],void 0!==(e=function(a,b,c,d,e){var f={};return f.repo=b.memoize(function(){var b=e.split("+")[0],d=a.repo+b+"/";return c.isHTTPS()?d.replace(/^http:/,"https:"):d}),f.versionCheck=function(a){var b=("0"+a).split(/\W/),c=e.split(/\W/),d=parseFloat(b[0]),f=parseFloat(c[0]);return!(d>f||d===f&&parseFloat("0"+b[1])>parseFloat(c[1]))},f.loadFrom=function(){return f.repo()},f}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[],void 0!==(e=function(){var a={};return a.getElementsByClassName=function(a,b,c){if(b=b||document,c=c||"*",b.getElementsByClassName)return b.getElementsByClassName(a);for(var d=[],e=b.getElementsByTagName(c),f=e.length,g=new RegExp("(^|\\s)"+a+"(\\s|$)"),h=0;h<f;h++)g.test(e[h].className)&&d.push(e[h]);return d},a.addEventListener=function(a,b,c,d){a=a||document,d=d||!1,a.addEventListener?a.addEventListener(b,c,d):a.attachEvent("on"+b,c)},a.removeEventListener=function(a,b,c,d){a=a||document,d=d||!1,a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent("on"+b,c)},a.arrayFilter=function(){Array.prototype.filter||(Array.prototype.filter=function(a){if(void 0===this||null===this)throw TypeError();var b=Object(this),c=b.length>>>0;if("function"!=typeof a)throw TypeError();var d,e=[],f=arguments[1];for(d=0;d<c;d++)if(d in b){var g=b[d];a.call(f,g,d,b)&&e.push(g)}return e})},a.funcBind=function(){Function.prototype.bind||(Function.prototype.bind=function(a){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var b=Array.prototype.slice.call(arguments,1),c=this,d=function(){},e=function(){return c.apply(this instanceof d&&a?this:a||window,b.concat(Array.prototype.slice.call(arguments)))};return d.prototype=this.prototype,e.prototype=new d,e})},a.arrayFilter(),a.funcBind(),a}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[c(1),c(3)],void 0!==(e=function(a,b){return a.extend({get:function(a){return this.attributes=this.attributes||{},this.attributes[a]},set:function(a,b){if(this.attributes=this.attributes||{},this.attributes[a]!==b){var c=this.attributes[a];this.attributes[a]=b,this.trigger("change:"+a,this,b,c)}},clone:function(){return a.clone(this.attributes)}},b)}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[],void 0!==(e=function(){var a=function(a,c,d){if(c=c||this,d=d||[],window.jwplayer&&window.jwplayer.debug)return a.apply(c,d);try{return a.apply(c,d)}catch(e){return new b(a.name,e)}},b=function(a,b){this.name=a,this.message=b.message||b.toString(),this.error=b};return{tryCatch:a,Error:b}}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[],void 0!==(e=function(){return document.createElement("video")}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[c(166),c(2),c(1),c(9),c(15)],void 0!==(e=function(a,b,c,d,e){var f=funct
|
||
|
},element:function(){return this.el},getVisibleBounds:function(){var b,c=this.el;return"table"===(getComputedStyle?getComputedStyle(c):c.currentStyle).display?a.bounds(c):(c.style.visibility="hidden",c.style.display="table",b=a.bounds(c),c.style.visibility=c.style.display="",b)},setAltText:function(a){this.elements.alt.innerHTML=a},addCues:function(a){this.elements.time&&(b.each(a,function(a){this.elements.time.addCue(a)},this),0===a.length&&this.elements.time.resetChapters(),this.elements.time.drawCues())},addThumbnails:function(a){this.elements.time&&(b.each(a,function(a){this.elements.time.addThumbnail(a)},this),this.elements.time.drawCues())},closeMenus:function(a){b.each(this.menus,function(b){a&&a.target===b.el||b.closeTooltip(a)})},hideComponents:function(){this.closeMenus(),this.elements.drawer.closeTooltip(),a.removeClass(this.el,"jw-drawer-expanded")},clearCompactMode:function(){this._maxCompactWidth=-1,this._model.set("compactUI",!1),this._containerWidth&&this.checkCompactMode(this._containerWidth)},setCompactModeBounds:function(){if(this.element().offsetWidth>0){var b=this.elements.left.offsetWidth+this.elements.right.offsetWidth;if("LIVE"===a.adaptiveType(this._model.get("duration")))this._maxCompactWidth=b+this.elements.alt.offsetWidth;else{var c=b+(this.elements.center.offsetWidth-this.elements.time.el.offsetWidth);this._maxCompactWidth=c/.8}}},checkCompactMode:function(a){this.setCompactModeBounds(),this._containerWidth=a,-1!==this._maxCompactWidth&&(a>=this._compactModeMaxSize&&a>this._maxCompactWidth?this._model.set("compactUI",!1):(a<this._compactModeMaxSize||a<=this._maxCompactWidth)&&this._model.set("compactUI",!0))},onCompactUI:function(c,d){a.removeClass(this.el,"jw-drawer-expanded"),this.elements.drawer.setup(this.layout.drawer,d),(!d||this.elements.drawer.activeContents.length<2)&&b.each(this.layout.drawer,function(a){this.elements.right.insertBefore(a.el,this.elements.drawer.el)},this)}}),p}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[c(2),c(3),c(9),c(167),c(1)],void 0!==(e=function(a,b,c,d,e){var f=function(f){e.extend(this,b),this.model=f,this.el=a.createElement(d({}));var g=this;this.iconUI=new c(this.el).on("click tap",function(a){g.trigger(a.type)})};return e.extend(f.prototype,{element:function(){return this.el}}),f}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[c(168),c(2),c(1),c(9)],void 0!==(e=function(a,b,c,d){var e=function(a){this.model=a,this.setup(),this.model.on("change:dock",this.render,this)};return c.extend(e.prototype,{setup:function(){var c=this.model.get("dock"),e=this.click.bind(this),f=a(c);this.el=b.createElement(f),new d(this.el).on("click tap",e)},getDockButton:function(a){return b.hasClass(a.target,"jw-dock-button")?a.target:b.hasClass(a.target,"jw-dock-text")?a.target.parentElement.parentElement:a.target.parentElement},click:function(a){var b=this.getDockButton(a),d=b.getAttribute("button"),e=this.model.get("dock"),f=c.findWhere(e,{id:d});f&&f.callback&&f.callback(a)},render:function(){var c=this.model.get("dock"),d=a(c),e=b.createElement(d);this.el.innerHTML=e.innerHTML},element:function(){return this.el}}),e}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[c(169)],void 0!==(e=function(a){function b(b,c,d,e){return a({id:b,skin:c,title:d,body:e})}return b}.apply(b,d))&&(a.exports=e)},function(a,b,c){var d,e;d=[c(9),c(2),c(4),c(1),c(3),c(170)],void 0!==(e=function(a,b,c,d,e,f){var g=b.style,h={linktarget:"_blank",margin:8,hide:!1,position:"top-right"};return function(i){var j,k,l=new Image,m=d.extend({},i.get("logo"));return d.extend(this,e),this.setup=function(e){if(k=d.extend({},h,m),k.hide="true"===k.hide.toString(),j=b.createElement(f()),k.file){k.hide&&b.addClass(j,"jw-hide"),b.addClass(j,"jw-logo-"+(k.position||h.position)),"top-right"===k.position&&(i.on("change:dock",this.topRight,this),i.on("change:controls",this.topRight,this),this.topRight(i)),i.set("logo",k),l.onload=function(){var a={backgroundImage:'url("'+this.src+'")',width:this.width,height:this.height};if(k.margin!==h.margin){var b=/(\w+)-(\w+)/.exec(k.position);3===b.leng
|
||
|
a.exports=b["default"]},function(a,b){(function(c){"use strict";b.__esModule=!0,b["default"]=function(a){var b=void 0!==c?c:window,d=b.Handlebars;a.noConflict=function(){return b.Handlebars===a&&(b.Handlebars=d),a}},a.exports=b["default"]}).call(b,function(){return this}())},function(a,b,c){"use strict";function d(a){var b=a&&a[0]||1,c=p.COMPILER_REVISION;if(b!==c){if(b<c){var d=p.REVISION_CHANGES[c],e=p.REVISION_CHANGES[b];throw new o["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+d+") or downgrade your runtime to an older version ("+e+").")}throw new o["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+a[1]+").")}}function e(a,b){function c(c,d,e){e.hash&&(d=m.extend({},d,e.hash),e.ids&&(e.ids[0]=!0)),c=b.VM.resolvePartial.call(this,c,d,e);var f=b.VM.invokePartial.call(this,c,d,e);if(null==f&&b.compile&&(e.partials[e.name]=b.compile(c,a.compilerOptions,b),f=e.partials[e.name](d,e)),null!=f){if(e.indent){for(var g=f.split("\n"),h=0,i=g.length;h<i&&(g[h]||h+1!==i);h++)g[h]=e.indent+g[h];f=g.join("\n")}return f}throw new o["default"]("The partial "+e.name+" could not be compiled when running in runtime-only mode")}function d(b){function c(b){return""+a.main(e,b,e.helpers,e.partials,g,i,h)}var f=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],g=f.data;d._setup(f),!f.partial&&a.useData&&(g=j(b,g));var h=void 0,i=a.useBlockParams?[]:void 0;return a.useDepths&&(h=f.depths?b!==f.depths[0]?[b].concat(f.depths):f.depths:[b]),(c=k(a.main,c,e,f.depths||[],g,i))(b,f)}if(!b)throw new o["default"]("No environment passed to template");if(!a||!a.main)throw new o["default"]("Unknown template object: "+typeof a);a.main.decorator=a.main_d,b.VM.checkRevision(a.compiler);var e={strict:function(a,b){if(!(b in a))throw new o["default"]('"'+b+'" not defined in '+a);return a[b]},lookup:function(a,b){for(var c=a.length,d=0;d<c;d++)if(a[d]&&null!=a[d][b])return a[d][b]},lambda:function(a,b){return"function"==typeof a?a.call(b):a},escapeExpression:m.escapeExpression,invokePartial:c,fn:function(b){var c=a[b];return c.decorator=a[b+"_d"],c},programs:[],program:function(a,b,c,d,e){var g=this.programs[a],h=this.fn(a);return b||e||d||c?g=f(this,a,h,b,c,d,e):g||(g=this.programs[a]=f(this,a,h)),g},data:function(a,b){for(;a&&b--;)a=a._parent;return a},merge:function(a,b){var c=a||b;return a&&b&&a!==b&&(c=m.extend({},b,a)),c},noop:b.VM.noop,compilerInfo:a.compiler};return d.isTop=!0,d._setup=function(c){c.partial?(e.helpers=c.helpers,e.partials=c.partials,e.decorators=c.decorators):(e.helpers=e.merge(c.helpers,b.helpers),a.usePartial&&(e.partials=e.merge(c.partials,b.partials)),(a.usePartial||a.useDecorators)&&(e.decorators=e.merge(c.decorators,b.decorators)))},d._child=function(b,c,d,g){if(a.useBlockParams&&!d)throw new o["default"]("must pass block params");if(a.useDepths&&!g)throw new o["default"]("must pass parent depths");return f(e,b,a[b],c,0,d,g)},d}function f(a,b,c,d,e,f,g){function h(b){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],h=g;return g&&b!==g[0]&&(h=[b].concat(g)),c(a,b,a.helpers,a.partials,e.data||d,f&&[e.blockParams].concat(f),h)}return h=k(c,h,a,g,d,f),h.program=b,h.depth=g?g.length:0,h.blockParams=e||0,h}function g(a,b,c){return a?a.call||c.name||(c.name=a,a=c.partials[a]):a="@partial-block"===c.name?c.data["partial-block"]:c.partials[c.name],a}function h(a,b,c){c.partial=!0,c.ids&&(c.data.contextPath=c.ids[0]||c.data.contextPath);var d=void 0;if(c.fn&&c.fn!==i&&(c.data=p.createFrame(c.data),d=c.data["partial-block"]=c.fn,d.partials&&(c.partials=m.extend({},c.partials,d.partials))),void 0===a&&d&&(a=d),void 0===a)throw new o["default"]("The partial "+c.name+" could not be found");if(a instanceof Function)return a(b,c)}function i(){return""}function j(a,b){return b&&"root"in b||(b=b?p.createFrame(b):{},b.root=a),b}function k(a,b,c,d,e,f){if(a.decorator){var g={};b=a.decorator(b,g,c,d&&d[0],e,f,d),m.extend(b,
|