volume||h.volume*1,video:{},disabled:!1,finished:!1,loading:!1,muted:h.muted=="true"||f.muted,paused:!1,playing:!1,ready:!1,splash:!1,bandwidth:"high",rtl:y,load:function(t,r){if(w.error||w.loading||w.disabled)return;t=c.resolve(t);if(l.data("detectBandwidth")===!0)w.video=t,e.extend(w.video,w.video.sources[1]),i.detectVideoBandwidth(w.bandwidthDetected);else{e.extend(t,d.pick(t.sources)),n&&(t.src=t.sources[0]);if(t.src){var s=e.Event("load");a.trigger(s,[w,t,d]),s.isDefaultPrevented()?w.loading=!1:(d.load(t),e.isFunction(t)&&(r=t),r&&a.one("ready",r))}}return w},bandwidthDetected:function(t){w.bandwidth=t,console.log("VIDEO BANDWIDTH DETECTION: "+w.bandwidth+" quality bandwidth detected");switch(w.bandwidth){case"high":w.video.src+="_1280x720_2000K";break;case"low":w.video.src+="_480x270_400K";break;default:w.video.src+="_1280x720_2000K"}console.log("TARGETING VIDEO QUALITY: "+w.video.src);if(w.video.src){var n=e.Event("load");a.trigger(n,[w,w.video,d]),n.isDefaultPrevented()?w.loading=!1:(d.load(w.video),e.isFunction(w.video)&&(o=w.video),o&&a.one("ready",o))}},pause:function(e){return w.ready&&!w.seeking&&!w.disabled&&!w.loading&&(d.pause(),w.one("pause",e)),n&&a.objectTag.get(0).pause(),w},resume:function(){return w.ready&&w.paused&&!w.disabled&&(d.resume(),w.finished&&(w.trigger("resume"),w.finished=!1)),w},toggle:function(){return w.ready?w.paused?w.resume():w.pause():w.load()},seek:function(t,n){if(w.ready){if(typeof t=="boolean"){var r=w.video.duration*.1;t=w.video.time+(t?r:-r)}t=p=Math.min(Math.max(t,0),w.video.duration).toFixed(1),d.seek(t),e.isFunction(n)&&a.one("seek",n)}return w},seekTo:function(e,t){var n=e===undefined?p:w.video.duration*.1*e;return w.seek(n,t)},mute:function(e){return e===undefined&&(e=!w.muted),h.muted=w.muted=e,h.volume=isNaN(h.volume)?f.volume:h.volume,w.volume(e?0:h.volume,!0),w.trigger("mute",e),w},volume:function(e,t){return w.ready&&(e=Math.min(Math.max(e,0),1),t||(h.volume=e),d.volume(e)),w},speed:function(t,n){return w.ready&&(typeof t=="boolean"&&(t=f.speeds[e.inArray(w.currentSpeed,f.speeds)+(t?1:-1)]||w.currentSpeed),d.speed(t),n&&a.one("speed",n)),w},stop:function(){return w.ready&&(w.pause(),w.seek(0,function(){a.trigger("stop")})),w},unload:function(){return a.hasClass("is-embedding")||(f.splash?(w.trigger("unload"),d.unload()):w.stop()),w},disable:function(e){return e===undefined&&(e=!w.disabled),e!=w.disabled&&(w.disabled=e,w.trigger("disable",e)),w}};w.conf=e.extend(w.conf,f),e.each(["bind","one","unbind"],function(e,t){w[t]=function(e,n){return a[t](e,n),w}}),w.trigger=function(e,t){return a.trigger(e,[w,t]),w},a.data("flowplayer")||a.bind("boot",function(){e.each(["autoplay","loop","preload","poster"],function(e,t){var n=l.attr(t);n!==undefined&&(f[t]=n?n:!0)});if(f.splash||a.hasClass("is-splash")||!flowplayer.support.firstframe)w.forcedSplash=!f.splash&&!a.hasClass("is-splash"),w.splash=f.splash=f.autoplay=!0,a.addClass("is-splash"),l.attr("preload","none");e.each(s,function(e){this(w,a)});if(n){var r="flash";d=flowplayer.engine[r]}else d=flowplayer.engine[f.engine];d&&(d=d(w,a)),d.pick(c.initialSources)?(w.engine=f.engine,n&&(w.engine="flash")):e.each(flowplayer.engine,function(e,t){if(e!=f.engine)return d=this(w,a),d.pick(c.initialSources)&&(w.engine=e),!1}),t.push(w);if(!w.engine)return w.trigger("error",{code:flowplayer.support.flashVideo?5:10});f.splash?w.unload():w.load(),f.disabled&&w.disable(),a.one("ready",o)}).bind("load",function(t,n,r){f.splash&&e(".flowplayer").filter(".is-ready, .is-loading").not(a).each(function(){var t=e(this).data("flowplayer");t.conf.splash&&t.unload()}),a.addClass("is-loading"),n.loading=!0}).bind("ready",function(e,t,n){function r(){a.removeClass("is-loading"),t.loading=!1}n.time=0,t.video=n,f.splash?a.one("progress",r):r(),t.muted?t.mute(!0):t.volume(t.volumeLevel)}).bind("unload",function(e){f.splash&&l.remove(),a.removeClass("is-loading"),w.loading=!1}).bind("ready unload",function(e){var t=e.type=="ready";a.toggleClass("is-splash",!t).toggleClass("is-ready",t),w.ready=t,w.splash=!t}).bind("progress",function(e,t,n){t.video.time=n}).bind("speed",function(e,t,n){t.currentSpeed=n}).bind("volume",function(e,t,n){t.volumeLevel=Math.round(n*100)/100,t.muted?n&&t.mute(!1):h.volume=n}).bind("beforeseek seek",function(e){w.seeking=e.type=="beforeseek",a.toggleClass("is-seeking",w.seeking)}).bind("ready pause resume unload finish stop",function(e,t,n){w.paused=/pause|finish|unload|stop/.test(e.type),e.type=="ready"&&(w.paused=f.preload=="none",n&&(w.paused=!n.duration||!f.autoplay&&f.preload!="none")),w.playing=!w.paused,a.toggleClass("is-paused",w.paused).toggleClass("is-playing",w.playing),w.load.ed||w.pause()}).bind("finish",function(e){w.finished=!0}).bind("error",function(){l.remove()}),a.trigger("boot",[w,a]).data("flowplayer",w)})},!function(){var t=flowplayer.support,r=e.browser,i=e("<video loop autoplay preload/>")[0],s=r.msie,o=navigator.userAgent,u=/iPad|MeeGo/.test(o)&&!/CriOS/.test(o),a=/iPad/.test(o)&&/CriOS/.test(o),f=/iP(hone|od)/i.test(o),l=/Android/.test(o)&&!/Firefox/.test(o),c=/Android/.test(o)&&/Firefox/.test(o),h=/Silk/.test(o),p=/IEMobile/.test(o),d=u?parseFloat(/Version\/(\d\.\d)/.exec(o)[1],10):0,v=l?parseFloat(/Android\ (\d\.\d)/.exec(o)[1],10):0;e.extend(t,{subtitles:!!i.addTextTrack,fullscreen:!l&&(typeof document.webkitCancelFullScreen=="function"&&!/Mac OS X 10_5.+Version\/5\.0\.\d Safari/.test(o)||document.mozFullScreenEnabled||typeof document.exitFullscreen=="function"),inlineBlock:!(s&&r.version<8),touch:"ontouchstart"in window,dataload:!u&&!f&&!p,zeropreload:!s&&!l,volume:!u&&!l&&!f&&!h&&!a,cachedVideoTag:!u&&!f&&!a&&!p,firstframe:!f&&!u&&!l&&!h&&!a&&!p&&!c,inlineVideo:!f&&!h&&!p&&(!l||v>=3),hlsDuration:!r.safari||u||f||a,seekable:!u&&!a,ipad:u});try{var m=s?(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version"):navigator.plugins["Shockwave Flash"].description;m=m.split(/\D+/),m.length&&!m[0]&&(m=m.slice(1)),t.flashVideo=m[0]>9||m[0]==9&&m[3]>=115,n&&(t.flashVideo=m[0]>9||m[0]==9&&m[2]>=115)}catch(g){}try{t.video=!!i.canPlayType,t.video&&i.canPlayType("video/mp4")}catch(y){t.video=!1}t.animation=function(){var t=["","Webkit","Moz","O","ms","Khtml"],n=e("<p/>")[0];for(var r=0;r<t.
Back to home |
File page
Subscribe |
Register |
Login
| N