!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(this,function(){return function(e){function t(o){if(i[o])return i[o].exports;var n=i[o]={exports:{},id:o,loaded:!1};return e[o].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var i={};return t.m=e,t.c=i,t.p="//imgcache.qq.com/open/qcloud/video/vcplayer/",t(0)}([function(e,t,i){"use strict";function o(e){if(e&&e.__esmodule)return e;var t={};if(null!=e)for(var i in e)object.prototype.hasownproperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function n(e,t){if(!(e instanceof t))throw new typeerror("cannot call a class as a function")}function r(e,t){if(!e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new typeerror("super expression must either be null or a function, not "+typeof t);e.prototype=object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(object.setprototypeof?object.setprototypeof(e,t):e.__proto__=t)}function a(e,t){if(d.is_mobile?(e.flash=!1,d.is_x5tbs&&e.x5_player?w.mobile=["flv","m3u8","mp4"]:d.is_enabled_mse&&e.h5_flv&&(w.mobile=["flv","m3u8","mp4"])):(e.flash=!!t.isformat("rtmp")||e.flash,t.isformat("flv")&&void 0==e.flash&&(e.flash=!0),e.flash?d.is_enabled_flash||(e.flash=!1,d.is_enabled_mse?e.h5_flv&&(d.is_safari&&v.compareversion(d.safari_version,"10.1")>-1||!d.is_safari)?w.pc=["flv","m3u8","mp4"]:w.pc=["m3u8","mp4"]:w.pc=["mp4"]):d.is_enabled_mse?e.h5_flv&&(d.is_safari&&v.compareversion(d.safari_version,"10.1")>-1||!d.is_safari)?w.pc=["flv","m3u8","mp4"]:w.pc=["m3u8","mp4"]:d.is_enabled_flash?e.flash=!0:w.pc=["mp4"]),e.clarity){var i=s.indexof(e.clarity);s.splice(i,1),s.unshift(e.clarity)}}function l(e){var t={urls:{m3u8:{od:e.m3u8||"",hd:e.m3u8_hd||"",sd:e.m3u8_sd||""},flv:{od:e.flv||"",hd:e.flv_hd||"",sd:e.flv_sd||""},mp4:{od:e.mp4||"",hd:e.mp4_hd||"",sd:e.mp4_sd||""},rtmp:{od:e.rtmp||"",hd:e.rtmp_hd||"",sd:e.rtmp_sd||""}},isclarity:function(e){var i=t.urls;return!!(i.m3u8[e]||i.flv[e]||i.mp4[e]||i.rtmp[e])},isformat:function(e){var i=t.urls;return!!i[e].od||!!i[e].hd||!!i[e].sd},hasurl:function(){return this.isformat("rtmp")||this.isformat("flv")||this.isformat("m3u8")||this.isformat("mp4")}};t.definitions=[];for(var i=0;i3&&void 0!==arguments[3]?arguments[3]:w,n="",r=void 0;i=i||(d.is_mobile?o.mobile:o.pc);for(var s=0;s2&&void 0!==arguments[2]?arguments[2]:s,o="",n=0;n1&&void 0!==arguments[1]?arguments[1]:w,i=void 0,o="",n=e.urls,r=d.is_mobile?t.mobile:t.pc,s=0;s0&&!this.options.live&&this.currenttime(t),n&&this.play(!0),b.unsub(_.metaloaded,"*",r,this)});b.sub(_.metaloaded,"*",r,this)},t.prototype.switchclarity=function(e){this.clarityswitcher?this.clarityswitcher.setclarity(e):this._switchclarity(e)},t.prototype.handlemsg=function(t){e.prototype.handlemsg.call(this,t)},t}(g.player)},function(e,t){"use strict";t.__esmodule=!0;var i=window.navigator.useragent,o=/applewebkit\/([\d.]+)/i.exec(i),n=o?parsefloat(o.pop()):null,r=t.is_ipad=/ipad/i.test(i),s=t.is_iphone=/iphone/i.test(i)&&!r,a=t.is_ipod=/ipod/i.test(i),l=t.is_ios=s||r||a,c=(t.ios_version=function(){var e=i.match(/os (\d+)_/i);if(e&&e[1])return e[1]}(),t.is_mac=/mac/i.test(i),t.is_android=/android/i.test(i)),u=t.android_version=function(){var e,t,o=i.match(/android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);return o?(e=o[1]&&parsefloat(o[1]),t=o[2]&&parsefloat(o[2]),e&&t?parsefloat(o[1]+"."+o[2]):e?e:null):null}(),p=(t.is_old_android=c&&/webkit/i.test(i)&&u<2.3,t.is_native_android=c&&u<5&&n<537,t.is_firefox=/firefox/i.test(i),t.is_edge=/edge/i.test(i)),h=t.is_chrome=!p&&/chrome/i.test(i),d=t.is_safari=!p&&!h&&/safari/i.test(i),f=(t.safari_version=function(){if(!d)return null;var e=/version\/([\d.]+)/i,t=i.match(e);return t?t[1]:void 0}(),t.is_ie8=/msie\s8\.0/.test(i),t.is_ie9=/msie\s9\.0/.test(i),t.is_ie=/(msie\s|trident.*rv:)([\w.]+)/i.test(i)),y=(t.ie_version=function(){var e=/(msie\s|trident.*rv:)([\w.]+)/i,t=i.match(e);return t?t[2]:null}(),t.touch_enabled=!!("ontouchstart"in window||window.documenttouch&&document instanceof window.documenttouch),t.background_size_supported="backgroundsize"in document.createelement("video").style,t.hasvideo=!!document.createelement("video").canplaytype,t.is_x5tbs=/tbs\/\d+/i.test(i)),v=(t.tbs_version=function(){var e=i.match(/tbs\/(\d+)/i);if(e&&e[1])return e[1]}(),t.is_mqqb=!y&&/mqqbrowser\/\d+/i.test(i),t.is_mobile=c||l,t.is_file_protocol=/file:/.test(location.protocol),t.flash_version=null);t.is_enabled_flash=function(){var e;if(document.all||f)try{if(e=new activexobject("shockwaveflash.shockwaveflash"))return t.flash_version=v=e.getvariable("$version").split(" ")[1].replace(/,/g,"."),window.console&&console.log("flash_version",v),!0}catch(i){return!1}else try{if(navigator.plugins&&navigator.plugins.length>0&&(e=navigator.plugins["shockwave flash"])){for(var o=e.description.split(" "),n=0;n-1?"edge":i.indexof(".net")>-1?"ie":i.indexof("qqbrowser")>-1?"qqbrowser":i.indexof("mac os")>-1?"safari":i.indexof("chrome")>-1?"chrome":"other"}()},function(e,t){"use strict";function i(e,t,i){return e?(e.addeventlistener?e.addeventlistener(t,i,!1):e.attachevent&&e.attachevent("on"+t,i),i):console.warn("element not exists")}function o(e,t,i){return e?void(e.removeeventlistener?e.removeeventlistener(t,i,!1):e.detachevent&&e.detachevent("on"+t,i)):console.warn("element not exists")}function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=document.createelement(e);for(var n in t)if(t.hasownproperty(n)){var r=t[n];null===r?o.removeattribute(r):o.setattribute(n,r)}for(var s in i)i.hasownproperty(s)&&(o[s]=i[s]);return o}function r(e){return document.getelementbyid(e)}function s(e,t){e.classlist?e.classlist.add(t):c(e,t)||(e.classname=e.classname+" "+t)}function a(e,t){e.classlist?e.classlist.remove(t):e.classname=e.classname.replace(u(t)," ")}function l(e,t,i){i?s(e,t):a(e,t)}function c(e,t){return e.classlist?e.classlist.contains(t):u(t).test(e.classname)}function u(e){return new regexp("(^|\\s)"+e+"($|\\s)")}function p(e){var t=void 0;if(e.getboundingclientrect&&e.parentnode&&(t=e.getboundingclientrect()),!t)return{left:0,top:0};var i=document.documentelement,o=document.body,n=i.clientleft||o.clientleft||0,r=window.pagexoffset||o.scrollleft,s=t.left+r-n,a=i.clienttop||o.clienttop||0,l=window.pageyoffset||o.scrolltop,c=t.top+l-a;return{left:math.round(s),top:math.round(c)}}function h(e,t,i){var o={},n=i||p(e),r=e.offsetwidth,s=e.offsetheight,a=n.top,l=n.left,c=t.pagey||t.clienty,u=t.pagex||t.clientx;return t.changedtouches&&(u=t.changedtouches[0].pagex,c=t.changedtouches[0].pagey),o.y=math.max(0,math.min(1,(a-c+s)/s)),o.x=math.max(0,math.min(1,(u-l)/r)),o}function d(e,t,i){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=document.createelement("script");if(n.onload=n.onreadystatechange=function(){this.readystate&&"loaded"!==this.readystate&&"complete"!==this.readystate||("function"==typeof t&&t(),n.onload=n.onreadystatechange=null,n.parentnode&&!o&&n.parentnode.removechild(n))},i)for(var r in i)if(i.hasownproperty(r)){var s=i[r];null===s?n.removeattribute(s):n.setattribute(r,s)}n.src=e,document.getelementsbytagname("head")[0].appendchild(n)}function f(){var e=document,t=e.documentelement,i=e.body;return{width:t&&t.clientwidth||i&&i.offsetwidth||window.innerwidth||0,height:t&&t.clientheight||i&&i.offsetheight||window.innerheight||0}}t.__esmodule=!0,t.on=i,t.off=o,t.createel=n,t.get=r,t.addclass=s,t.removeclass=a,t.toggleclass=l,t.hasclass=c,t.findelposition=p,t.getpointerposition=h,t.loadscript=d,t.getviewportsize=f},function(e,t,i){"use strict";function o(e){if(e&&e.__esmodule)return e;var t={};if(null!=e)for(var i in e)object.prototype.hasownproperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function n(){return s++}function r(e,t,i){t.guid||(t.guid=n());var o=function(){t.apply(e,arguments)};return o.guid=i?i+"_"+t.guid:t.guid,o}function s(e){if(e instanceof array)return 0===e.length;for(var t in e)if(e.hasownproperty(t))return!1;return!0}function a(e){e=0|e;var t=3600,i=60,o=e/t|0,n=(e-o*t)/i|0,r=e-o*t-n*i;return o=o>0?o+":":"",n=n>0?n+":":"00:",r=r>0?r+"":o.length>0||n.length>0?"00":"00:00",o=2==o.length?"0"+o:o,n=2==n.length?"0"+n:n,r=1==r.length?"0"+r:r,o+n+r}function l(e){p.__isfullscreen=!!document[e.fullscreenelement],p.__isfullscreen||b.off(document,e.fullscreenchange,l),_.pub({type:g.msg.fullscreen,src:"util",ts:e.timestamp,detail:{isfullscreen:p.__isfullscreen}},p.player)}function c(e,t){b.off(t.video.el,"webkitbeginfullscreen",c),"webkitbeginfullscreen"==e.type?(b.on(t.video.el,"webkitendfullscreen",function(e){c(e,t)}),_.pub({type:g.msg.fullscreen,src:"util",ts:e.timestamp,detail:{isfullscreen:!0}},p.player)):"webkitendfullscreen"==e.type&&(b.off(t.video.el,"webkitendfullscreen",c),_.pub({type:g.msg.fullscreen,src:"util",ts:e.timestamp,detail:{isfullscreen:!1}},p.player))}function u(e){27===e.keycode&&p(p.player,!1)}function p(e,t,i){if("undefined"==typeof t)return p.__isfullscreen||!1;var o=e.options.systemfullscreen;p.player=e,e.requestfullscreen?t?(b.on(document,e.fullscreenchange,l),i&&i[e.requestfullscreen]()):document[e.exitfullscreen]():o&&e.video.el.webkitenterfullscreen?(b.on(e.video.el,"webkitbeginfullscreen",function(t){c(t,e)}),t?e.video.el.webkitenterfullscreen():e.video.el.webkitexitfullscreen()):(p.__isfullscreen=t,p.__isfullscreen?(p.__origoverflow=document.documentelement.style.overflow,document.documentelement.style.overflow="hidden",b.on(document,"keydown",u)):(document.documentelement.style.overflow=p.__origoverflow,b.off(document,"keydown",u)),b.toggleclass(document.body,"vcp-full-window",t),_.pub({type:g.msg.fullscreen,src:"util",detail:{isfullscreen:p.__isfullscreen}},p.player))}function h(e){for(var t=arguments.length,i=array(t>1?t-1:0),o=1;oa)return-1}return-1}function y(e){return e.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/\'/g,"'").replace(/\//g,"/")}function v(e){var t="unknown";return e.isformat("rtmp")?t="rtmp":e.isformat("flv")?t="flv":e.isformat("m3u8")?t="m3u8":e.isformat("mp4")&&(t="mp4"),t}t.__esmodule=!0,t.supportstyle=t.console=t.videotype=t.cdnpath=t.fullscreenapi=void 0,t.guid=n,t.bind=r,t.isempty=s,t.converttime=a,t.dofullscreen=p,t.extend=h,t.store=d,t.compareversion=f,t.escapehtml=y,t.getformat=v;for(var m=i(2),b=o(m),g=i(4),_=o(g),w=i(1),s=(o(w),1),e=t.fullscreenapi={requestfullscreen:null,exitfullscreen:null,fullscreenelement:null,fullscreenenabled:null,fullscreenchange:null,fullscreenerror:null},m=[["requestfullscreen","exitfullscreen","fullscreenelement","fullscreenenabled","fullscreenchange","fullscreenerror"],["webkitrequestfullscreen","webkitexitfullscreen","webkitfullscreenelement","webkitfullscreenenabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitrequestfullscreen","webkitcancelfullscreen","webkitcurrentfullscreenelement","webkitcancelfullscreen","webkitfullscreenchange","webkitfullscreenerror"],["mozrequestfullscreen","mozcancelfullscreen","mozfullscreenelement","mozfullscreenenabled","mozfullscreenchange","mozfullscreenerror"],["msrequestfullscreen","msexitfullscreen","msfullscreenelement","msfullscreenenabled","msfullscreenchange","msfullscreenerror"]],o=m[0],k=void 0,p=0;p10||l.ios_version>10)&&"system"==this.options.controls||(this.bigplay=new w["default"](this),this.bigplay.render(this.el));var n=void 0;n=!(this.options.controls&&"default"!=this.options.controls&&(!this.options.flash||"system"!=this.options.controls)),n&&(this.panel=new g["default"](this),this.panel.render(this.el)),this.setup()},e.prototype.verifyoptions=function(){return l.ie_version&&x.compareversion(l.ie_version,"8.0")==-1?(this.errortips.show({code:5}),!1):l.is_file_protocol?(this.errortips.show({code:10}),!1):!!this.options.src||(this.options.videosource.hasurl()?l.is_ie||!l.is_enabled_flash?this.errortips.show({code:5}):this.errortips.show({code:5}):this.errortips.show({code:12}),!1)},e.prototype.size=function(e,t,i){i=i||"cover";var o=/^\d+\.?\d{0,2}%$/,n=void 0,r=void 0;if(o.test(e)||o.test(t))n=e,r=t;else{var s=this.video?this.video.videowidth():this.options.width,a=this.video?this.video.videoheight():this.options.height;if(n=e,r=t,s&&a){var l=s/a;"fit"==i&&(n=e,r=n/l,r>t&&(n*=t/r,r=t))}var c=f.getviewportsize();c.width>0&&n>c.width&&(n=c.width)}n+=o.test(n)?"":"px",r+=o.test(r)?"":"px",this.el.style.width=n,this.el.style.height=r,this.video&&(this.video.width(n),this.video.height(r)),this.width=n,this.height=r},e.prototype.setup=function(){if(this.__handleevent=x.bind(this,this.handleevent),l.is_mobile){if(this.options.autoplay){var e=this;document.addeventlistener("weixinjsbridgeready",function(){e.play()})}}else this.loading.show()},e.prototype.destroy=function(){this.video&&this.video.destroy(),this.panel&&this.panel.destroy(),this.bigplay&&this.bigplay.destroy(),this.loading&&this.loading.destroy(),d.unsub("*","*",this.handlemsg,this),this.video=this.panel=this.bigplay=this.loading=null,this.el.parentnode.removechild(this.el)},e.prototype.setlistener=function(e){this.listener=e},e.prototype.handleevent=function(e){switch(e.type){case"mousemove":if(this.__lastmove&&new date-this.__lastmove<100)break;var t=this;if(this.__movecnt=this.__movecnt||0,this.__movecnt++,this.__movecnt<5){settimeout(function(){t.__movecnt=0},500);break}this.__movecnt=0,this.__lastmove=+new date,cleartimeout(this.__moveid),t.panel&&t.panel.show(),this.__moveid=settimeout(function(){t.playing()&&t.panel&&t.panel.hide()},3e3)}},e.prototype.handlemsg=function(e){switch(e.type){case c.load:f.removeclass(this.el,"vcp-playing");break;case c.play:if(!this.playing())break;!this.hasplay&&this.options.flash&&(this.mtareport.reportflash(),this.hasplay=!0),f.addclass(this.el,"vcp-playing"),this.video.type()==x.videotype.rtmp&&(this.__wait=!0,this.loading.show()),f.on(this.el,"mousemove",this.__handleevent);break;case c.playing:this.loading.hide();break;case c.timeupdate:this.__wait&&(this.__wait=!1,this.loading.hide());break;case c.pause:f.off(this.el,"mousemove",this.__handleevent),f.removeclass(this.el,"vcp-playing");break;case c.ended:f.off(this.el,"mousemove",this.__handleevent),this.panel&&this.panel.show(),f.removeclass(this.el,"vcp-playing");break;case c.metaloaded:this.loading.hide(),this.mtareport.report(),this.size(this.options.width,this.options.height);break;case c.seeking:this.loading.show();break;case c.seeked:this.loading.hide();break;case c.fullscreen:var t=this;settimeout(function(){f.toggleclass(t.el,"vcp-fullscreen",e.detail.isfullscreen)},0);break;case c.error:this.loading.hide(),this.errortips.show(e.detail),this.panel&&this.panel.show();try{var i=this.options.videosource,o=x.getformat(i);l.is_x5tbs?mtah5.clickstat("x5_err",{format:o}):mtah5.clickstat("error",{format:o})}catch(n){}}!e["private"]&&this.listener&&this.listener(e)},e.prototype.currenttime=function(e){return this.video.currenttime(e)},e.prototype.duration=function(){return this.video.duration()},e.prototype.percent=function(e){return this.video.duration()?"undefined"==typeof e?this.video.currenttime()/this.video.duration():void this.video.currenttime(this.video.duration()*e):0},e.prototype.buffered=function(){return this.video.duration()?this.video.buffered()/this.video.duration():0},e.prototype.pause=function(){this.video.pause()},e.prototype.play=function(){var e;this.errortips.clear(),(e=this.video).play.apply(e,arguments)},e.prototype.toggleplay=function(){this.errortips.clear(),this.video.toggleplay()},e.prototype.stop=function(){this.video.stop()},e.prototype.mute=function(e){return this.video.mute(e)},e.prototype.volume=function(e){return this.video.volume(e)},e.prototype.fullscreen=function(e){return this.video.fullscreen(e)},e.prototype.load=function(e,t){this.errortips.clear(),this.loading.show(),this.video.load(e||this.options.src,t)},e.prototype.playing=function(){return this.video&&this.video.playing()},e.prototype.paused=function(){return this.video&&this.video.paused()},e}()},function(e,t,i){var o=i(7);"string"==typeof o&&(o=[[e.id,o,""]]);i(9)(o,{});o.locals&&(e.exports=o.locals)},function(e,t,i){t=e.exports=i(8)(),t.push([e.id,'.vcp-player{position:relative;z-index:0;font-family:tahoma,\\\\5fae\\8f6f\\96c5\\9ed1,\\u5b8b\\u4f53,verdana,arial,sans-serif;background-color:#000}.vcp-player video{display:block;overflow:hidden}.vcp-fullscreen.vcp-player,.vcp-fullscreen video,body.vcp-full-window{width:100%!important;height:100%!important}body.vcp-full-window{overflow-y:auto}.vcp-full-window .vcp-player{position:fixed;left:0;top:0;z-index:2147483647}.vcp-pre-flash,.vcp-video{width:100%;height:100%}.vcp-pre-flash{z-index:999;background:#000;position:absolute;top:0;left:0}.vcp-controls-panel{position:absolute;bottom:0;width:100%;font-size:16px;height:3em;z-index:1000}.vcp-controls-panel.show{-webkit-animation:fadein ease .8s;animation:fadein ease .8s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.vcp-controls-panel.hide{-webkit-animation:fadeout ease .8s;animation:fadeout ease .8s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.vcp-panel-bg{width:100%;height:100%;position:absolute;left:0;top:0;background-color:#242424;opacity:.8;filter:alpha(opacity=80);z-index:1000}.vcp-playtoggle{cursor:pointer;position:relative;z-index:1001;width:3em;height:100%;float:left;background-image:url(//imgcache.qq.com/open/qcloud/video/vcplayer/img/play_btn.svg);background-image:url(//imgcache.qq.com/open/qcloud/video/vcplayer/img/play_btn.png)\\0}.vcp-playtoggle:focus,.vcp-playtoggle:hover{background-color:#708090;opacity:.9;filter:alpha(opacity=90)}.touchable .vcp-playtoggle:hover{background-color:transparent;opacity:1}.vcp-playing .vcp-playtoggle{background-image:url(//imgcache.qq.com/open/qcloud/video/vcplayer/img/stop_btn.svg);background-image:url(//imgcache.qq.com/open/qcloud/video/vcplayer/img/stop_btn.png)\\0}.vcp-bigplay{width:100%;height:80%;position:absolute;background-color:white\\0;filter:alpha(opacity=0);opacity:0;z-index:1000;top:0;left:0}.vcp-slider{position:relative;z-index:1001;float:left;background:#c4c4c4;height:10px;opacity:.8;filter:alpha(opacity=80);cursor:pointer}.vcp-slider .vcp-slider-track{width:0;height:100%;margin-top:0;opacity:1;filter:alpha(opacity=100);background-color:#1e90ff}.vcp-slider .vcp-slider-thumb{cursor:pointer;background-color:#fff;position:absolute;top:0;left:0;border-radius:1em!important;height:10px;margin-left:-5px;width:10px}.vcp-slider-vertical{position:relative;width:.5em;height:8em;top:-5.6em;z-index:1001;background-color:#1c1c1c;opacity:.9;filter:alpha(opacity=90);cursor:pointer}.vcp-slider-vertical .vcp-slider-track{background-color:#1275cf;width:.5em;height:100%;opacity:.8;filter:alpha(opacity=80)}.vcp-slider-vertical .vcp-slider-thumb{cursor:pointer;position:absolute;background-color:#f0f8ff;width:.8em;height:.8em;border-radius:.8em!important;margin-top:-.4em;top:0;left:-.15em}.vcp-timeline{top:-10px;left:0;height:10px;position:absolute;z-index:1001;width:100%}.vcp-timeline .vcp-slider-thumb{top:-4px}.vcp-timeline .vcp-slider{margin-top:8px;height:2px;width:100%}.vcp-timeline:hover .vcp-slider{margin-top:0;height:10px}.vcp-timeline:hover .vcp-slider-thumb{display:block;width:16px;height:16px;top:-3px;margin-left:-8px}.vcp-timelabel{display:inline-block;line-height:3em;float:left;color:#fff;padding:0 9px}.vcp-timelabel,.vcp-volume{height:3em;z-index:1001;position:relative}.vcp-volume{width:3em;cursor:pointer;float:right;background-color:transparent;opacity:.9;filter:alpha(opacity=90)}.vcp-volume-icon{background-image:url(//imgcache.qq.com/open/qcloud/video/vcplayer/img/volume.svg);background-image:url(//imgcache.qq.com/open/qcloud/video/vcplayer/img/volume.png)\\0;display:inline-block;width:3em;height:3em;position:absolute;left:0;top:0}.vcp-volume-muted .vcp-volume-icon{background-image:url(//imgcache.qq.com/open/qcloud/video/vcplayer/img/muted.svg);background-image:url(//imgcache.qq.com/open/qcloud/video/vcplayer/img/muted.png)\\0}.vcp-volume .vcp-slider-vertical{top:-8.4em;left:1em;display:none}.vcp-volume .vcp-slider-track{position:absolute;bottom:0}.vcp-volume:hover .vcp-slider-vertical{display:block}.vcp-volume .vcp-volume-bg{height:8.8em;width:2em;position:absolute;left:.25em;top:-8.8em;background:#242424;display:none}.vcp-volume:hover .vcp-slider-vertical,.vcp-volume:hover .vcp-volume-bg{display:block}.vcp-fullscreen-toggle{position:relative;width:3em;height:3em;float:right;cursor:pointer;z-index:1001;background-image:url(//imgcache.qq.com/open/qcloud/video/vcplayer/img/fullscreen.svg);background-image:url(//imgcache.qq.com/open/qcloud/video/vcplayer/img/fullscreen.png)\\0}.vcp-fullscreen .vcp-fullscreen-toggle{background-image:url(//imgcache.qq.com/open/qcloud/video/vcplayer/img/fullscreen_exit.svg);background-image:url(//imgcache.qq.com/open/qcloud/video/vcplayer/img/fullscreen_exit.png)\\0}.vcp-loading{box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;text-indent:-9999em}.vcp-loading:before{box-sizing:inherit;content:"";display:block;width:100%;height:100%;border-radius:50%;border:3px solid hsla(0,0%,100%,0);border-left-color:#fff;border-right-color:#fff;-webkit-transform:translatez(0);transform:translatez(0);-webkit-animation:load8 1.1s infinite linear;animation:load8 1.1s infinite linear}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.vcp-poster{position:absolute;left:0;top:0;overflow:hidden;z-index:1000;width:100%;height:100%;display:none}.vcp-poster-pic{position:relative}.vcp-poster-pic.cover,.vcp-poster-pic.default{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vcp-poster-pic.cover{width:100%}.vcp-poster-pic.stretch{width:100%;height:100%}.vcp-error-tips{position:absolute;z-index:1001;width:100%;height:4.5em;left:0;top:50%;color:#ff4500;margin-top:-5.25em;text-align:center;display:none}.vcp-clarityswitcher{height:3em;width:3em;cursor:pointer;position:relative;z-index:1001;float:right;background-color:transparent;opacity:.9}.vcp-vertical-switcher-container{width:3em;position:absolute;left:0;bottom:2.4em;background:#242424;display:none}.vcp-vertical-switcher-current{display:block;color:#fff;text-align:center;line-height:3em}.vcp-vertical-switcher-item{display:block;color:#fff;text-align:center;line-height:2em}.vcp-vertical-switcher-item.current{color:#888}.vcp-share>a{width:3em;height:3em;cursor:pointer;background-image:url(//imgcache.qq.com/open/qcloud/video/vcplayer/img/share_btn.png);opacity:.9;display:block}.vcp-share{width:3em;height:3em;position:relative;float:right;z-index:1001}.vcp-vertical-share-container{width:auto;height:auto;position:absolute;background:rgba(36,36,36,.8);padding:.5em;overflow:hidden;display:none}@-webkit-keyframes fadeout{0%{opacity:1}to{opacity:0}}@keyframes fadeout{0%{opacity:1}to{opacity:0}}.fadeout{-webkit-animation:fadeout ease .8s;animation:fadeout ease .8s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}@-webkit-keyframes fadein{0%{opacity:0}to{opacity:1}}@keyframes fadein{0%{opacity:0}to{opacity:1}}.fadein{-webkit-animation:fadein ease .8s;animation:fadein ease .8s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}',""])},function(e,t){e.exports=function(){var e=[];return e.tostring=function(){for(var e=[],t=0;t=0&&g.splice(t,1)}function a(e){var t=document.createelement("style");return t.type="text/css",r(e,t),t}function l(e){var t=document.createelement("link");return t.rel="stylesheet",r(e,t),t}function c(e,t){var i,o,n;if(t.singleton){var r=b++;i=m||(m=a(t)),o=u.bind(null,i,r,!1),n=u.bind(null,i,r,!0)}else e.sourcemap&&"function"==typeof url&&"function"==typeof url.createobjecturl&&"function"==typeof url.revokeobjecturl&&"function"==typeof blob&&"function"==typeof btoa?(i=l(t),o=h.bind(null,i),n=function(){s(i),i.href&&url.revokeobjecturl(i.href)}):(i=a(t),o=p.bind(null,i),n=function(){s(i)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourcemap===e.sourcemap)return;o(e=t)}else n()}}function u(e,t,i,o){var n=i?"":o.css;if(e.stylesheet)e.stylesheet.csstext=_(t,n);else{var r=document.createtextnode(n),s=e.childnodes;s[t]&&e.removechild(s[t]),s.length?e.insertbefore(r,s[t]):e.appendchild(r)}}function p(e,t){var i=t.css,o=t.media;if(o&&e.setattribute("media",o),e.stylesheet)e.stylesheet.csstext=i;else{for(;e.firstchild;)e.removechild(e.firstchild);e.appendchild(document.createtextnode(i))}}function h(e,t){var i=t.css,o=t.sourcemap;o&&(i+="\n/*# sourcemappingurl=data:application/json;base64,"+btoa(unescape(encodeuricomponent(json.stringify(o))))+" */");var n=new blob([i],{type:"text/css"}),r=e.href;e.href=url.createobjecturl(n),r&&url.revokeobjecturl(r)}var d={},f=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},y=f(function(){return/msie [6-9]\b/.test(window.navigator.useragent.tolowercase())}),v=f(function(){return document.head||document.getelementsbytagname("head")[0]}),m=null,b=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=y()),"undefined"==typeof t.insertat&&(t.insertat="bottom");var i=n(e);return o(i,t),function(e){for(var r=[],s=0;s0?f.console.error("加载视频文件超时"):f.console.error("无法加载视频文件,请检查网络,以及视频文件是否允许跨域请求访问,m3u8文件是否存在 "+(t.response&&t.response.status?"netstatus:"+t.response.status:"")),this.notify({type:"error",code:2,timestamp:+new date}),r.startload();break;case hls.errortypes.media_error:r.recovermediaerror();break;default:r.destroy()}},t.prototype.__flvloaded=function(e){if(!flvjs.issupported())return this.notify({type:"error",code:5,timestamp:+new date});this.flv&&this.flv.destroy();var t=flvjs.createplayer({type:"flv",islive:this.player.options.live,url:e});t.attachmediaelement(this.el),t.on(flvjs.events.error,f.bind(this,function(e,t,i){var o={type:"error"};e==flvjs.errortypes.network_error&&(o.code=2),e==flvjs.errortypes.media_error&&(o.code=1002),e==flvjs.errortypes.other_error,o.timestamp=+new date,this.notify(o)})),t.on(flvjs.events.media_info,f.bind(this,function(e,t){})),t.on(flvjs.events.statistics_info,f.bind(this,function(e,t){})),this.flv=t,t.load()},t.prototype.setup=function(){this.playstate=m.playstates.idle,this.seekstate=m.seekstates.idle,this.metadataloaded=!1,this.__timebase=+new date,this.on(y.msg.metaloaded,this.notify),this.on(y.msg.loaded,this.notify),this.on(y.msg.progress,this.notify),this.on(y.msg.play,this.notify),this.on(y.msg.playing,this.notify),this.on(y.msg.pause,this.notify),this.on(y.msg.error,this.notify),this.on(y.msg.timeupdate,this.notify),this.on(y.msg.ended,this.notify),this.on(y.msg.seeking,this.notify),this.on(y.msg.seeked,this.notify),this.on(y.msg.volumechange,this.notify),this.on("durationchange",this.notify),this.load(this.options.src,this.options.m3u8?f.videotype.m3u8:"")},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.hls&&this.hls.destroy()},t.prototype.notify=function(e){var t={type:e.type,src:this,ts:+new date,timestamp:e.timestamp};switch(e.type){case y.msg.metaloaded:this.metadataloaded=!0;break;case y.msg.error:var i={1:"media_err_aborted",2:"media_err_network",3:"media_err_decode",4:"media_err_src_not_supported"};t.detail=this.el&&this.el.error||{code:e.code},t.detail.reason=i[t.detail.code];break;case y.msg.ended:this.pause(),this.playstate=m.playstates.stop;break;case"durationchange":0!=this.videoheight()&&(t.type=y.msg.resize);break;case y.msg.playing:this.playstate=e.type.touppercase();break;case y.msg.pause:this.playstate=m.playstates.paused;break;case y.msg.seeking:case y.msg.seeked:this.seekstate=e.type.touppercase()}"timeupdate"!=e.type,this.pub(t)},t.prototype.videowidth=function(){return this.el.videowidth},t.prototype.videoheight=function(){return this.el.videoheight},t.prototype.width=function(e){return e?void(this.el.style.width=e):this.el.width},t.prototype.height=function(e){return e?void(this.el.style.height=e):this.el.height},t.prototype.play=function(){this.options.hls_autostartload===!1&&this.hls&&this.hls.startload(-1),this.el.play()},t.prototype.toggleplay=function(){this.paused()?this.play():this.pause()},t.prototype.pause=function(){this.el.pause()},t.prototype.stop=function(){this.el.pause(),this.el.currenttime=0},t.prototype.paused=function(){return this.el.paused},t.prototype.buffered=function(){return this.el.buffered.length>=1?this.el.buffered.end(this.el.buffered.length-1):0},t.prototype.currenttime=function(e){return"undefined"==typeof e?this.el.currenttime:this.el.currenttime=e},t.prototype.duration=function(){return this.el.duration||0},t.prototype.mute=function(e){return"undefined"==typeof e?this.el.muted:(this.volume(e?0:this.__lastvol),this.el.muted=e)},t.prototype.volume=function(e){return"undefined"==typeof e?this.el.volume:(e<0&&(e=0),e>1&&(e=1),0!=e&&(this.__lastvol=e),this.el.muted=0==e,this.options.volume=e,this.el.volume=e)},t.prototype.fullscreen=function(e){return f.dofullscreen(this.player,e,this.owner)},t.prototype.load=function(e,t){this.pub({type:y.msg.load,src:this,ts:+new date,detail:{src:e,type:t}});var i=e.indexof(".m3u8")>-1||t==f.videotype.m3u8,o=e.indexof(".flv")>-1;if(!g.is_enabled_mse||!i&&!o||g.is_x5tbs&&this.player.options.x5_player||i&&g.is_mac&&g.is_safari&&!g.is_ios)this.__type=t,this.el.src=e;else{var n=this,r=_[this.options.hls]||_["0.7.1"];i?(this.__type=f.videotype.m3u8,"undefined"==typeof window.hls?h.loadscript(f.cdnpath+r,function(){n.__hlsloaded.call(n,e)}):this.__hlsloaded(e)):o&&(this.__type=f.videotype.flv,"undefined"==typeof window.flvjs?h.loadscript(f.cdnpath+"libs/flv.min.js",function(){n.__flvloaded.call(n,e)}):this.__flvloaded(e))}},t.prototype.playing=function(){return!this.el.paused},t.prototype.type=function(){return this.__type},t}(u["default"]);t["default"]=w},function(e,t,i){"use strict";function o(e){if(e&&e.__esmodule)return e;var t={};if(null!=e)for(var i in e)object.prototype.hasownproperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function n(e,t){if(!(e instanceof t))throw new typeerror("cannot call a class as a function")}function r(e,t){return t+"_"+e}function s(e,t){return t.guid&&string(t.guid).indexof("_")==-1?e+"_"+t.guid:t.guid}t.__esmodule=!0;var a=i(2),l=o(a),c=i(3),u=o(c),p=i(4),h=o(p),d=i(1),f=o(d),y=function(){function e(t,i){n(this,e),this.name=i,this.player=t,this.options=t.options,this.fncache={},this.guid=u.guid()}return e.prototype.createel=function(e,t,i){return this.el=l.createel(e,t,i)},e.prototype.render=function(e){return e&&this.el&&(this.owner=e,e.appendchild(this.el),this.setup()),this.el},e.prototype.on=function(e,t,i){"string"==typeof e&&(i=t,t=e,e=this.el),this.cbs=this.cbs||{};var o=s(this.guid,i),n=!o,a=o&&!this.fncache[o];return n||a?(i=u.bind(this,i,this.guid),this.fncache[i.guid]=i,o=i.guid):i=this.fncache[o],l.on(e,t,i),this.cbs[r(o,t)]={guid:o,el:e,type:t},i},e.prototype.off=function(e,t,i){"string"==typeof e&&(i=t,t=e,e=this.el),f.is_mobile&&"click"==t&&(t="touchend");var o=s(this.guid,i);this.fncache[o]&&(i=this.fncache[o]),l.off(e,t,i),delete this.cbs[r(o,t)]},e.prototype.pub=function(e){var t=this;settimeout(function(){h.pub(e,t.player)},0)},e.prototype.sub=function(e,t,i){h.sub(e,t,i,this.player)},e.prototype.unsub=function(e,t,i){h.unsub(e,t,i,this.player)},e.prototype.handlemsg=function(){},e.prototype.setup=function(){},e.prototype.destroy=function(){if(this.handlemsg&&this.unsub("*","*",this.handlemsg),this.cbs){for(var e in this.cbs)if(this.cbs.hasownproperty(e)){var t=this.cbs[e];l.off(t.el,t.type,this.fncache[t.guid]),delete this.cbs[e]}this.fncache=null,this.cbs=null;try{this.el.parentnode.removechild(this.el)}catch(i){}}},e}();t["default"]=y},function(e,t){"use strict";t.__esmodule=!0;t.playstates={idle:"idle",playing:"playing",paused:"paused",stop:"stop"},t.seekstates={idle:"idle",seeking:"seeking",seeked:"seeked"},t.controlsstates={default:"default",none:"none",system:""}},function(e,t,i){"use strict";function o(e){if(e&&e.__esmodule)return e;var t={};if(null!=e)for(var i in e)object.prototype.hasownproperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function n(e){return e&&e.__esmodule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new typeerror("cannot call a class as a function")}function s(e,t){if(!e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new typeerror("super expression must either be null or a function, not "+typeof t);e.prototype=object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(object.setprototypeof?object.setprototypeof(e,t):e.__proto__=t)}function l(e){return window.document[e]?window.document[e]:navigator.appname.indexof("microsoft internet")!=-1?document.getelementbyid(e):document.embeds&&document.embeds[e]?document.embeds[e]:void 0}t.__esmodule=!0;var c=i(11),u=n(c),p=i(4),h=i(2),d=o(h),f=i(3),y=o(f),v=i(12),m=o(v),b=i(1),g=o(b),_=function(e){function t(i){r(this,t);var o=s(this,e.call(this,i,"flashvideo")),n="vcpflashcb_"+o.guid;return o.__flashcb=n,window[n]||(window[n]=function(e,t){t=t&&t[0];var i=window[n].fnobj&&window[n].fnobj[t.objectid];i&&i(e,t)},window[n].fnobj={}),o}return a(t,e),t.prototype.render=function(e){this.__timebase=+new date;var t=this.player.options,i=t.flashurl||"//imgcache.qq.com/open/qcloud/video/player/release/qcplayer.swf",o="opaque",n="obj_vcplayer_"+this.player.guid,r=this.__flashcb;this.__id=n;var s=d.createel("div",{"class":"vcp-video"});s.innerhtml='\n\t\t\n \n \n \n \n \n \n \n \n\n \n \n \n\t\t',this.container=s,this.owner=e,this.owner.appendchild(s),this.cover=d.createel("div",{"class":"vcp-pre-flash"}),this.owner.appendchild(this.cover),window[this.__flashcb].fnobj[this.__id]=y.bind(this,this.notify)},t.prototype.setup=function(){this.on("error",this.notify),this.playstate=m.playstates.idle,this.seekstate=m.seekstates.idle,this.metadataloaded=!1},t.prototype.dopolling=function(){this.options.live||(clearinterval(this.__timer),this.__timer=setinterval(this.interval.bind(this),1e3))},t.prototype.endpolling=function(){clearinterval(this.__timer)},t.prototype.interval=function(){var e;try{e=this.el.getstate()}catch(t){return void this.endpolling()}if(this.__m3u8){var i=this.currenttime()+e.bufferlength;this.__buffered!==i&&(this.__buffered=i,this.pub({type:p.msg.progress,src:this,ts:+new date})),this.__buffered>=this.duration()&&this.endpolling()}else this.__rtmp||(this.__bytesloaded!=e.bytesloaded&&(this.__bytesloaded=e.bytesloaded,this.pub({type:p.msg.progress,src:this,ts:+new date})),this.__bytesloaded>=this.__bytestotal&&this.endpolling())},t.prototype.destroy=function(){"undefined"!=typeof this.el&&"undefined"!=typeof this.el.destroy&&this.el.destroy(),this.endpolling(),delete window[this.__flashcb].fnobj[this.__id],e.prototype.destroy.call(this)},t.prototype.notify=function(e,t){var i={type:e,ts:+new date};try{switch(this.options.debug&&this.pub({type:i.type,src:this,ts:i.ts,detail:y.extend({debug:!0},t)}),i.type){case"ready":if(this.el=l(this.__id),this.setup(),g.is_firefox){var o=this;settimeout(function(){o.el.setautoplay(!!o.options.autoplay),o.__timebase=new date-t.time,o.load(o.options.src)},0)}else this.el.setautoplay(!!this.options.autoplay),this.__timebase=new date-t.time,this.load(this.options.src);return;case"metadata":i.type=p.msg.metaloaded,this.__videowidth=t.videowidth,this.__videoheight=t.videoheight,this.__duration=t.duration,this.__bytestotal=t.bytestotal,this.__prevplaystate=null,this.__m3u8=t.type===y.videotype.m3u8,this.__rtmp=t.type===y.videotype.rtmp,this.__type=t.type,this.__metaloaded=!0,this.metadataloaded=!0,this.dopolling();var o=this;if(!o.cover)break;settimeout(function(){o.cover&&(o.owner.removechild(o.cover),o.cover=null)},500);break;case"playstate":this.playstate=t.playstate,t.playstate==m.playstates.playing?(this.__playing=!0,this.__stopped=!1,i.type=p.msg.play):t.playstate==m.playstates.paused?(this.__playing=!1,this.__stopped=!1,i.type=p.msg.pause):t.playstate==m.playstates.stop?(this.__playing=!1,this.__stopped=!0,i.type=p.msg.ended,this.__prevplaystate=null,this.options.live&&(this.metadataloaded=!1)):t.playstate==m.playstates.idle&&(this.__playing=!1,this.__stopped=!0,i.type=p.msg.ended);break;case"seekstate":if(this.seekstate=t.seekstate,!this.__metaloaded)return;if(t.seekstate==m.seekstates.seeking)i.type=p.msg.seeking;else{if(t.seekstate!=m.seekstates.seeked)return;this.__m3u8||this.options.live||t.playstate!=m.playstates.stop||(this.play(),this.__prevplaystate=t.playstate),this.__m3u8&&(i.type=p.msg.seeked)}break;case"netstatus":this.options.live||("netstream.buffer.full"==t.code?(this.__prevplaystate==m.playstates.paused||this.__prevplaystate==m.playstates.stop,this.__prevplaystate=null,i.type=p.msg.seeked):"netstream.seek.complete"==t.code),"netconnection.connect.closed"==t.code&&(this.options.src.indexof("rtmp://")>-1?this.playstate==m.playstates.stop?(i.type="error",t={code:13,reason:t.code}):(i.type="error",t={code:1002,reason:t.code}):this.playstate=m.playstates.idle),"netstream.play.stop"!=t.code&&"netconnection.connect.success"!=t.code&&"netconnection.connect.failed"!=t.code||(this.playstate=m.playstates.idle);break;case"mediatime":this.__videowidth=t.videowidth,this.__videoheight=t.videoheight,i.type=p.msg.timeupdate;break;case"error":if("netstream.seek.invalidtime"==t.code)return this.currenttime(t.details),!1;"netstream.play.streamnotfound"==t.code&&this.pub({type:"netstatus",src:this,ts:i.ts,detail:t});var n=isnan(parseint(t.code))?1002:t.code,r=isnan(parseint(t.code))?t.code:t.msg,s=r.match(/#(\d+)/);s&&s[1]&&(n=s[1]),t={code:n,reason:r||""},this.metadataloaded=!1}var a="printlog"==e||"canplay"==e;!a&&this.pub({type:i.type,src:this,ts:i.ts,detail:t})}catch(c){y.console.error(e+" "+i.type,c)}},t.prototype.handlemsg=function(e){},t.prototype.videowidth=function(){return this.__videowidth},t.prototype.videoheight=function(){return this.__videoheight},t.prototype.width=function(e){return"undefined"==typeof e?this.el&&this.el.width:(e="100%",this.el&&(this.el.width=e))},t.prototype.height=function(e){return"undefined"==typeof e?this.el&&this.el.height:(e="100%",this.el&&(this.el.height=e))},t.prototype.play=function(e){this.playstate==m.playstates.paused||this.playstate==m.playstates.playing||e?this.el.playerresume():this.playstate!=m.playstates.playing&&this.el.playerplay()},t.prototype.toggleplay=function(){this.metadataloaded?this.playstate==m.playstates.paused?this.el.playerresume():this.playstate==m.playstates.playing?this.el.playerpause():this.playstate==m.playstates.stop?(this.currenttime(0),this.el.playerresume()):this.el.playerplay():this.player.load()},t.prototype.pause=function(){this.el.playerpause()},t.prototype.stop=function(){this.el.playerstop()},t.prototype.paused=function(){return!this.__playing},t.prototype.buffered=function(){var e;return this.__m3u8?this.__buffered||0:(e=(this.__bytesloaded||0)/(this.__bytestotal||1),this.duration()*e)},t.prototype.currenttime=function(e){return"undefined"==typeof e?this.el.getposition():void this.el.playerseek(e)},t.prototype.duration=function(){return this.__duration},t.prototype.mute=function(e){return"undefined"==typeof e?0==this.volume():void this.volume(e?0:this.__lastvol)},t.prototype.volume=function(e){return"undefined"==typeof e?this.el&&this.el.getstate().volume:(this.el&&this.el.playervolume(e),0!=e&&(this.__lastvol=e),this.options.volume=e,void this.pub({type:p.msg.volumechange,src:this,ts:+new date}))},t.prototype.fullscreen=function(e){return y.dofullscreen(this.player,e,this.owner)},t.prototype.load=function(e,t){this.pub({type:p.msg.load,src:this,ts:+new date,detail:{src:e,type:t}}),this.el&&this.el.playerload(e)},t.prototype.playing=function(){return this.el&&this.el.getstate&&this.el.getstate().playstate===m.playstates.playing},t.prototype.type=function(){return this.__type},t.prototype.state=function(){return this.playstate},t}(u["default"]);t["default"]=_},function(e,t,i){"use strict";function o(e){if(e&&e.__esmodule)return e;var t={};if(null!=e)for(var i in e)object.prototype.hasownproperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function n(e){return e&&e.__esmodule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new typeerror("cannot call a class as a function")}function s(e,t){if(!e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new typeerror("super expression must either be null or a function, not "+typeof t);e.prototype=object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(object.setprototypeof?object.setprototypeof(e,t):e.__proto__=t)}t.__esmodule=!0;var l=i(11),c=n(l),u=i(15),p=n(u),h=i(16),d=n(h),f=i(17),y=i(18),v=n(y),m=i(19),b=n(m),g=i(20),_=n(g),w=i(21),s=n(w),e=i(4),m=i(2),o=o(m),k=i(3),p=o(k),i=i(1),t=o(i),c=function(e){function t(i){return r(this,t),s(this,e.call(this,i,"panel"))}return a(t,e),t.prototype.render=function(t){return this.createel("div",{"class":"vcp-controls-panel"}),this.el.appendchild(o.createel("div",{"class":"vcp-panel-bg"})),this.playtoggle=new p["default"](this.player),this.playtoggle.render(this.el),this.timelabel=new b["default"](this.player),this.timelabel.render(this.el),this.timeline=new v["default"](this.player),this.timeline.render(this.el),this.options.fullscreenenabled===!0&&(this.fullscreen=new d["default"](this.player),this.fullscreen.render(this.el)),t.is_mobile||(this.volume=new _["default"](this.player),this.volume.render(this.el)),this.options.videosource&&this.options.videosource.definitions.length>1&&!t.is_mobile&&(this.clarityswitcher=new s["default"](this.player),this.clarityswitcher.render(this.el)),e.prototype.render.call(this,t)},t.prototype.setup=function(){var e=p.bind(this,this.handlemsg);this.sub(f.msg.changing,this.volume,e),this.sub(f.msg.changed,this.timeline.progress,e),this.sub(e.msg.timeupdate,this.player.video,e),this.sub(e.msg.progress,this.player.video,e),this.sub(e.msg.metaloaded,this.player.video,e),this.sub(e.msg.pause,this.player.video,e),this.sub(e.msg.play,this.player.video,e),this.sub(e.msg.ended,this.player.video,e)},t.prototype.handlemsg=function(e){switch(e.type){case e.msg.metaloaded:this.timeline.percent(this.player.percent()),this.timeline.buffered(this.player.buffered()),this.player.volume("undefined"==typeof this.options.volume?.5:this.options.volume),!this.options.autoplay&&this.show();break;case e.msg.timeupdate:this.timeline.scrubbing||this.timeline.percent(this.player.percent());break;case e.msg.pause:this.show();break;case e.msg.play:this.hide();break;case e.msg.progress:this.timeline.buffered(this.player.buffered());break;case f.msg.changed:e.src===this.timeline.progress&&this.player.percent(this.timeline.percent());break;case e.msg.ended:this.show()}},t.prototype.toggle=function(){o.hasclass(this.el,"show")?this.hide():this.show()},t.prototype.show=function(){o.hasclass(this.el,"hide")&&(o.removeclass(this.el,"hide"),o.addclass(this.el,"show"))},t.prototype.hide=function(){o.removeclass(this.el,"show"),o.addclass(this.el,"hide")},t}(c["default"]);t["default"]=c},function(e,t,i){"use strict";function o(e){if(e&&e.__esmodule)return e;var t={};if(null!=e)for(var i in e)object.prototype.hasownproperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function n(e){return e&&e.__esmodule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new typeerror("cannot call a class as a function")}function s(e,t){if(!e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new typeerror("super expression must either be null or a function, not "+typeof t);e.prototype=object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(object.setprototypeof?object.setprototypeof(e,t):e.__proto__=t)}t.__esmodule=!0;var l=i(11),c=n(l),u=i(2),p=(o(u),i(4)),h=(o(p),i(3)),d=(o(h),i(12)),f=(o(d),function(e){function t(i){return r(this,t),s(this,e.call(this,i,"playtoggle"))}return a(t,e),t.prototype.render=function(t){return this.createel("div",{"class":"vcp-playtoggle"}),e.prototype.render.call(this,t)},t.prototype.setup=function(){this.on("click",this.onclick)},t.prototype.onclick=function(){this.player.toggleplay()},t.prototype.handlemsg=function(e){console.log("@"+this.name,e)},t}(c["default"]));t["default"]=f},function(e,t,i){"use strict";function o(e){if(e&&e.__esmodule)return e;var t={};if(null!=e)for(var i in e)object.prototype.hasownproperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function n(e){return e&&e.__esmodule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new typeerror("cannot call a class as a function")}function s(e,t){if(!e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new typeerror("super expression must either be null or a function, not "+typeof t);e.prototype=object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(object.setprototypeof?object.setprototypeof(e,t):e.__proto__=t)}t.__esmodule=!0;var l=i(11),c=n(l),u=i(2),p=(o(u),i(4)),h=(o(p),i(3)),d=o(h),f=function(e){function t(i){return r(this,t),s(this,e.call(this,i,"fullscreentoggle"))}return a(t,e),t.prototype.render=function(t){return this.createel("div",{"class":"vcp-fullscreen-toggle"}),window.fsapi=d.fullscreenapi,e.prototype.render.call(this,t)},t.prototype.setup=function(){this.on("click",this.onclick)},t.prototype.onclick=function(){this.player.fullscreen(!this.player.fullscreen())},t.prototype.handlemsg=function(e){console.log(t.name,e)},t}(c["default"]);t["default"]=f},function(e,t,i){"use strict";function o(e){if(e&&e.__esmodule)return e;var t={};if(null!=e)for(var i in e)object.prototype.hasownproperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function n(e){return e&&e.__esmodule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new typeerror("cannot call a class as a function")}function s(e,t){if(!e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new typeerror("super expression must either be null or a function, not "+typeof t);e.prototype=object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(object.setprototypeof?object.setprototypeof(e,t):e.__proto__=t)}t.__esmodule=!0,t.msg=void 0;var l=i(11),c=n(l),u=i(2),p=o(u),h=i(4),d=(o(h),i(3)),f=(o(d),t.msg={changing:"sliderchanging",changed:"sliderchanged"}),y=function(e){function t(i,o){r(this,t);var n=s(this,e.call(this,i,"slider"));return n.vertical=o||!1,n}return a(t,e),t.prototype.render=function(t,i){var o=this.vertical?"vcp-slider-vertical":"vcp-slider";return this.createel("div",{"class":o}),this.track=p.createel("div",{"class":"vcp-slider-track"}),this.thumb=p.createel("div",{"class":"vcp-slider-thumb"}),this.el.appendchild(this.track),this.el.appendchild(this.thumb),this.enabled="undefined"==typeof i||i,e.prototype.render.call(this,t)},t.prototype.setup=function(){this.enabled&&(this.ownerdoc=document.body.ownerdocument,this.on("mousedown",this.mousedown),this.on("touchstart",this.mousedown))},t.prototype.handlemsg=function(e){},t.prototype.mousedown=function(e){return e.preventdefault&&e.preventdefault(),this.pos=p.findelposition(this.el),this.on(this.ownerdoc,"mouseup",this.mouseup),this.on(this.ownerdoc,"mousemove",this.mousemove),this.on(this.ownerdoc,"touchend",this.mouseup),this.on(this.ownerdoc,"touchmove",this.mousemove),this.mousemove(e),!1},t.prototype.mouseup=function(e){e.target||e.srcelement;this.off(this.ownerdoc,"mouseup",this.mouseup),this.off(this.ownerdoc,"mousemove",this.mousemove),this.off(this.ownerdoc,"touchend",this.mouseup),this.off(this.ownerdoc,"touchmove",this.mousemove),this.pub({type:f.changed,src:this,"private":!0})},t.prototype.mousemove=function(e){var t=p.getpointerposition(this.el,e,this.pos);this.vertical?(this.__percent=1-t.y,this.thumb.style.top=100*this.__percent+"%"):(this.__percent=t.x,this.thumb.style.left=100*this.__percent+"%"),this.__percent=number(this.__percent.tofixed(3)),this.pub({type:f.changing,src:this,"private":!0})},t.prototype.percent=function(e){return e||0==e?(this.__percent=e,void(this.vertical?this.thumb.style.top=100*this.__percent+"%":this.thumb.style.left=100*this.__percent+"%")):this.__percent},t}(c["default"]);t["default"]=y},function(e,t,i){"use strict";function o(e){if(e&&e.__esmodule)return e;var t={};if(null!=e)for(var i in e)object.prototype.hasownproperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function n(e){return e&&e.__esmodule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new typeerror("cannot call a class as a function")}function s(e,t){if(!e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new typeerror("super expression must either be null or a function, not "+typeof t);e.prototype=object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(object.setprototypeof?object.setprototypeof(e,t):e.__proto__=t)}t.__esmodule=!0;var l=i(17),c=n(l),u=i(11),p=n(u),h=i(2),d=(o(h),i(3)),f=o(d),y=function(e){function t(i){return r(this,t),s(this,e.call(this,i,"timeline"))}return a(t,e),t.prototype.render=function(t){return this.enabled=!this.options.live,this.createel("div",{"class":"vcp-timeline"}),this.progress=new c["default"](this.player,(!1)),this.progress.render(this.el,this.enabled),this.track=this.progress.track,this.enabled||(this.el.style.display="none"),e.prototype.render.call(this,t)},t.prototype.setup=function(){this.enabled&&(this.sub(l.msg.changing,this.progress,f.bind(this,this.handlemsg)),this.sub(l.msg.changed,this.progress,f.bind(this,this.handlemsg)))},t.prototype.handlemsg=function(e){e.type===l.msg.changing?(this.scrubbing=!0,this.synclabel(this.percent())):e.type===l.msg.changed&&(this.scrubbing=!1)},t.prototype.synclabel=function(e){var t=this.player.duration();e=math.min(e,1);var i="";t&&(i=f.converttime(e*t)+" / "+f.converttime(t)),this.pub({type:"timelabel",src:"timeline",label:i,"private":!0})},t.prototype.buffered=function(e){this.enabled&&(e=math.min(e,1),this.__buffered=e,this.track.style.width=100*e+"%")},t.prototype.percent=function(e){if(this.enabled)return"undefined"==typeof e?this.progress.percent()||0:(e=math.min(e,1),this.synclabel(e),this.__buffered0&&this.__muted&&this.syncmute(!1)}},t.prototype.togglemute=function(e){var t=!this.player.mute();this.player.mute(t)},t.prototype.syncmute=function(e){e?d.addclass(this.el,"vcp-volume-muted"):d.removeclass(this.el,"vcp-volume-muted"),this.__muted=e},t.prototype.synctrack=function(e){this.track.style.height=100*e+"%",this.volume.percent(1-e)},t.prototype.percent=function(e){return"undefined"==typeof e?1-this.volume.percent()||0:(this.player.volume(e),e)},t}(p["default"]);t["default"]=m},function(e,t,i){"use strict";function o(e){if(e&&e.__esmodule)return e;var t={};if(null!=e)for(var i in e)object.prototype.hasownproperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function n(e){return e&&e.__esmodule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new typeerror("cannot call a class as a function")}function s(e,t){if(!e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new typeerror("super expression must either be null or a function, not "+typeof t);e.prototype=object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(object.setprototypeof?object.setprototypeof(e,t):e.__proto__=t)}t.__esmodule=!0;var l=i(11),c=n(l),u=i(2),p=o(u),h=i(3),d=o(h),f={od:"超清",hd:"高清",sd:"标清"},y=function(e){function t(i){r(this,t);var o=s(this,e.call(this,i,"clarityswitcher"));return f=d.extend({},i.options.claritylabel,f),i.clarityswitcher=o,o}return a(t,e),t.prototype.render=function(t){this.show=!1,this.createel("div",{"class":"vcp-clarityswitcher"}),this.current=p.createel("a",{"class":"vcp-vertical-switcher-current"}),this.container=p.createel("div",{"class":"vcp-vertical-switcher-container"}),this.items=[],this.currentitem="";var i=this.options.videosource;this.current.innerhtml=f[i.curdef],this.el.appendchild(this.current);for(var o=0;o10||v.ios_version>10)&&"system"==this.player.options.controls&&this.player.toggleplay()},t.prototype.handlemsg=function(e){switch(e.type){case m.msg.load:this.__loaded=!1,this.setposter(this.poster.start);break;case m.msg.metaloaded:if(this.__loaded=!0,!this.player.playing())break;this.hide();case m.msg.play:if(!this.__loaded)break;this.hide();break;case m.msg.pause:if(!this.__loaded)break;this.options.coverpic_pause===!0&&this.setposter(this.poster.pause);break;case m.msg.ended:if(!this.__loaded)break;break;case m.msg.error:if(!this.__loaded)break}},t.prototype.setposter=function(e){if(e=e||this.poster.src){this.__preload&&(this.__preload.onload=null),this.__preload=new image;var t=this.__preload;this.hide();var i=this;t.onload=function(){if(i.pic.src=t.src,i.show(),!f.supportstyle("transform")){var e="stretch"==i.poster.style;if(e)return;var o="cover"==i.poster.style?i.options.width/(t.width/t.height):t.height,n="-"+i.options.width/2+"px",r="-"+o/2+"px";i.pic.style.csstext="left: 50%; top: 50%; margin-left: "+n+"; margin-top: "+r+";"}},t.src=e}},t.prototype.toggle=function(e){cleartimeout(this.__tid);var t=this;this.__tid=settimeout(function(){t.el.style.display=e},100)},t.prototype.hide=function(){this.__preload&&(this.__preload.onload=null),this.toggle("none")},t.prototype.show=function(){this.toggle("block")},t}(u["default"]);t["default"]=b},function(e,t,i){"use strict";function o(e){if(e&&e.__esmodule)return e;var t={};if(null!=e)for(var i in e)object.prototype.hasownproperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function n(e){return e&&e.__esmodule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new typeerror("cannot call a class as a function")}function s(e,t){if(!e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new typeerror("super expression must either be null or a function, not "+typeof t);e.prototype=object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(object.setprototypeof?object.setprototypeof(e,t):e.__proto__=t)}t.__esmodule=!0;var l=i(11),c=n(l),u=i(2),p=(o(u),i(4)),h=(o(p),i(3)),d=(o(h),function(e){function t(i){r(this,t);var o=s(this,e.call(this,i,"loading"));return o.timeseed=null,o}return a(t,e),t.prototype.render=function(t){return this.createel("div",{"class":"vcp-loading"}),e.prototype.render.call(this,t)},t.prototype.setup=function(){},t.prototype.handlemsg=function(e){},t.prototype.show=function(){if(this.options.showloading!==!1){var e=500,t=this;this.timeseed=settimeout(function(){t.el.style.display="block"},e)}},t.prototype.hide=function(){this.timeseed&&(cleartimeout(this.timeseed),this.timeseed=null),this.el.style.display="none"},t}(c["default"]));t["default"]=d},function(e,t,i){"use strict";function o(e){if(e&&e.__esmodule)return e;var t={};if(null!=e)for(var i in e)object.prototype.hasownproperty.call(e,i)&&(t[i]=e[i]);return t["default"]=e,t}function n(e){return e&&e.__esmodule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new typeerror("cannot call a class as a function")}function s(e,t){if(!e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new typeerror("super expression must either be null or a function, not "+typeof t);e.prototype=object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(object.setprototypeof?object.setprototypeof(e,t):e.__proto__=t)}t.__esmodule=!0;var l=i(11),c=n(l),u=i(2),p=(o(u),i(4)),h=(o(p),i(3)),d=o(h),f={enverror:"当前系统环境不支持播放该视频格式",envflasherror:"当前系统环境不支持播放该视频格式",videosourceerror:"获取视频失败,请检查播放链接是否有效",networkerror:"网络错误,请检查网络配置或者播放链接是否正确",videodecodeerror:"视频解码错误",argumenterror:"使用参数有误,请检查播放器调用代码",urlempty:"请填写视频播放地址",fileprotocol:"请勿在file协议下使用播放器,可能会导致视频无法播放",livefinish:"直播已结束,请稍后再来",crossdomainerror:"无法加载视频文件,跨域访问被拒绝",ie9iframefullscreenerror:"在ie9中用iframe引用的实例无法支持全屏"},y={fileprotocol:[10],argumenterror:[11],urlempty:[12],livefinish:[13],videosourceerror:[1002,2032],enverror:[4,5],networkerror:[1001,1,2],videodecodeerror:[3],crossdomainerror:[2048],ie9iframefullscreenerror:[10001]},v=function(e){function t(i){r(this,t);var o=s(this,e.call(this,i,"errortips"));o.customtips=d.extend({},f,o.options.wording);for(var n in y)for(var a=0;a