Commit e1644c396487f507edaad4682280dc206fbf51c5

Authored by yangzhi
1 parent 4ee13894

王哥起来屙尿了

public/index.html
1 1 <!DOCTYPE html>
2 2 <html>
3   - <head>
  3 +
  4 +<head>
4 5 <meta charset="utf-8">
5 6 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6 7 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
7 8 <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8   - <title><%= webpackConfig.name %></title>
9   - </head>
10   - <body>
  9 + <title>
  10 + <%= webpackConfig.name %>
  11 + </title>
  12 +</head>
  13 +
  14 +<body>
11 15 <noscript>
12 16 <strong>We're sorry but <%= webpackConfig.name %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13 17 </noscript>
14 18 <div id="app"></div>
  19 + <script src="/static/TcPlayer/TcPlayer-2.4.1.js" charset="utf-8"></script>
15 20 <!-- built files will be auto injected -->
16   - </body>
17   -</html>
  21 +</body>
  22 +
  23 +</html>
18 24 \ No newline at end of file
... ...
public/static/TcPlayer/TcPlayer-2.4.1.js 0 → 100644
  1 +!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?b.mobile=["webrtc","flv","m3u8","mp4"]:d.IS_ENABLED_MSE&&e.h5_flv&&(b.mobile=["webrtc","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)?b.pc=["webrtc","flv","m3u8","mp4"]:b.pc=["webrtc","m3u8","mp4"]:b.pc=["webrtc","mp4"]):d.IS_ENABLED_MSE?e.h5_flv&&(d.IS_SAFARI&&v.compareVersion(d.SAFARI_VERSION,"10.1")>-1||!d.IS_SAFARI)?b.pc=["webrtc","flv","m3u8","mp4"]:b.pc=["webrtc","m3u8","mp4"]:d.IS_ENABLED_FLASH?e.flash=!0:b.pc=["webrtc","mp4"]),e.clarity){var i=M.indexOf(e.clarity);M.splice(i,1),M.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||""},webrtc:{od:e.webrtc||"",hd:e.webrtc_hd||"",sd:e.webrtc_sd||""}},isClarity:function(e){var i=t.urls;return!!(i.m3u8[e]||i.flv[e]||i.mp4[e]||i.rtmp[e]||i.webrtc[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")||this.isFormat("webrtc")}};t.definitions=[];for(var i=0;i<M.length;i++)t.isClarity(M[i])&&t.definitions.push(M[i]);a(e,t);var o=p(t);return o&&(t.curUrl=o.url,t.curDef=o.definition,t.curFormat=o.format),t}function c(e,t,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:b,n="",r=void 0;i=i||(d.IS_MOBILE?o.mobile:o.pc);for(var s=0;s<i.length;s++)if(n=i[s],e[n][t]){r={definition:t,url:e[n][t],format:n};break}return r}function u(e,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M,o="",n=0;n<i.length;n++)if(o=i[n],e[t][o])return{definition:o,url:e[t][o]}}function p(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b,i=void 0,o="",n=e.urls,r=d.IS_MOBILE?t.mobile:t.pc,s=0;s<r.length;s++)if(o=r[s],e.isFormat(o)){i=u(n,o),i.format=o;break}return i}t.__esModule=!0,t.TcPlayer=void 0;var h=i(1),d=o(h),f=i(2),y=(o(f),i(3)),v=o(y),A=i(4),m=o(A),g=i(5),w=m.MSG,b={mobile:["webrtc","m3u8","mp4"],pc:["webrtc","rtmp","flv","m3u8","mp4"]},M=["od","hd","sd"];t.TcPlayer=function(e){function t(i,o){n(this,t);var s=l(o);M=["od","hd","sd"];var a={owner:i,videoSource:s,src:s.curUrl,autoplay:o.autoplay,live:o.live,flash:o.flash,flashUrl:o.flashUrl,poster:o.poster,width:o.width,height:o.height,volume:o.volume,listener:o.listener,wording:o.wording,controls:o.controls,clarity:o.clarity,clarityLabel:o.clarityLabel,showLoading:"boolean"!=typeof o.showLoading||o.showLoading,pausePosterEnabled:void 0===o.pausePosterEnabled||o.pausePosterEnabled,fullscreenEnabled:void 0===o.fuScrnEnabled||o.fuScrnEnabled,systemFullscreen:o.systemFullscreen||!1,hls:o.hls||"0.12.4",h5_flv:o.h5_flv,x5_player:o.x5_player!==!1,x5_type:o.x5_type,x5_fullscreen:o.x5_fullscreen,x5_orientation:o.x5_orientation,x5_playsinline:o.x5_playsinline,preload:o.preload||"auto",hlsConfig:o.hlsConfig,flvConfig:o.flvConfig,webrtcConfig:o.webrtcConfig};return r(this,e.call(this,a))}return s(t,e),t.prototype._switchClarity=function(e){e=e||"od";var t=this.currentTime(),i=this.options.videoSource,o=c(i.urls,e),n=this.playing();this.load(o.url),i.curUrl=o.url,i.curDef=o.definition,i.curFormat=o.format;var r=v.bind(this,function(){parseInt(this.duration()-t)>0&&!this.options.live&&this.currentTime(t),n&&this.play(!0),m.unsub(w.MetaLoaded,"*",r,this)});m.sub(w.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+)_(\d+)_?(\d+)?/i);return e&&[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]||[]}(),u=(t.IS_MAC=/Mac/i.test(i),t.IS_ANDROID=/Android/i.test(i)),p=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}(),h=(t.IS_OLD_ANDROID=u&&/webkit/i.test(i)&&p<2.3,t.IS_NATIVE_ANDROID=u&&p<5&&n<537,t.IS_FIREFOX=/Firefox/i.test(i)),d=t.FIREFOX_VERSION=h&&function(){var e=i.match(/Firefox\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),f=t.IS_EDGE=/Edge/i.test(i),y=t.IS_EDG=/Edg/i.test(i),v=t.EDG_VERSION=y&&function(){var e=i.match(/Edg\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),A=t.IS_CHROME=!f&&/Chrome/i.test(i),m=t.IS_SAFARI=!f&&!A&&/Safari/i.test(i),g=(t.SAFARI_VERSION=function(){if(!m)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)),w=(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)),b=(t.TBS_VERSION=function(){var e=i.match(/TBS\/(\d+)/i);if(e&&e[1])return e[1]}(),t.IS_MQQB=!w&&/MQQBrowser\/\d+/i.test(i),t.IS_QQB=!w&&/ QQBrowser\/\d+/i.test(i),t.IS_WECHAT=/(micromessenger|webbrowser)/i.test(i),t.IS_UC=/UCBrowser\/(\d+)\./i.test(i)),M=(t.IS_MQQ=/ QQ\/\d+/i.test(i),t.IS_MOBILE=u||l,t.IS_FILE_PROTOCOL=/file:/.test(location.protocol),t.FLASH_VERSION=null),S=(t.IS_ENABLED_FLASH=function(){var e;if(document.all||g)try{if(e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return t.FLASH_VERSION=M=e.GetVariable("$version").split(" ")[1].replace(/,/g,"."),window.console&&console.log("FLASH_VERSION",M),!0}catch(e){return!1}else try{if(navigator.plugins&&navigator.plugins.length>0&&(e=navigator.plugins["Shockwave Flash"])){for(var i=e.description.split(" "),o=0;o<i.length;++o)isNaN(parseInt(i[o]))||(t.FLASH_VERSION=M=i[o],window.console&&console.log("FLASH_VERSION",parseInt(i[o])));return!0}}catch(e){return!1}return!1}(),t.IS_ENABLED_MSE=function(){var e=window.MediaSource=window.MediaSource||window.WebKitMediaSource,t=window.SourceBuffer=window.SourceBuffer||window.WebKitSourceBuffer,i=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),o=!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove;if(!l)return i&&o}(),t.BROWSER_TYPE=function(){return i.indexOf("Edge")>-1?"Edge":i.indexOf(".NET")>-1?"IE":i.indexOf("QQBrowser")>-1?"QQBrowser":i.indexOf("Mac OS")>-1?"safari":i.indexOf("Chrome")>-1?"chrome":"other"}(),t.isBrowserSupportWebRTC=function(){var e=56,t=80;return!b&&!f&&(!(y&&v<t)&&(!(h&&d<e)&&!(!w&&m&&l&&(0===c.length||c[0]<11||11===c[0]&&c[1]<1||11===c[0]&&1===c[1]&&c[2]<2))))});t.IS_ENABLED_WEBRTC=function(){var e=function(){if(!S())return!1;var e=!1;return["RTCPeerConnection","webkitRTCPeerConnection","RTCIceGatherer"].forEach(function(t){e||t in window&&(e=!0)}),e},t=new Promise(function(t,i){try{var o={iceServers:[],sdpSemantics:"unified-plan"},n=new RTCPeerConnection(o),r={};n.addTransceiver?(n.addTransceiver("audio",{direction:"recvonly"}),n.addTransceiver("video",{direction:"recvonly"})):r={offerToReceiveVideo:!0,offerToReceiveAudio:!0},n.createOffer(r).then(function(i){var o=i.sdp.toLowerCase().indexOf("h264")>-1;n.close(),t(e()&&o)})}catch(e){i()}});return t}()},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 E++}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;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){h.__isFullscreen=!!document[_.fullscreenElement],h.__isFullscreen||(I.IS_X5TBS&&w.off(h.player.video.el,"x5videoexitfullscreen",c),w.off(document,_.fullscreenchange,l)),M.pub({type:b.MSG.FullScreen,src:"util",ts:e.timeStamp,detail:{isFullscreen:h.__isFullscreen}},h.player)}function c(e){"x5videoexitfullscreen"===e.type&&(h.__isFullscreen=!1,w.off(document,_.fullscreenchange,l),w.off(h.player.video.el,"x5videoexitfullscreen",c),M.pub({type:b.MSG.FullScreen,src:"util",ts:e.timeStamp,detail:{isFullscreen:!1}},h.player))}function u(e){"webkitbeginfullscreen"==e.type?(w.off(h.player.video.el,"webkitbeginfullscreen",u),w.on(h.player.video.el,"webkitendfullscreen",u),M.pub({type:b.MSG.FullScreen,src:"util",ts:e.timeStamp,detail:{isFullscreen:!0}},h.player)):"webkitendfullscreen"==e.type&&(w.off(h.player.video.el,"webkitendfullscreen",u),M.pub({type:b.MSG.FullScreen,src:"util",ts:e.timeStamp,detail:{isFullscreen:!1}},h.player))}function p(e){27===e.keyCode&&h(h.player,!1)}function h(e,t,i){if("undefined"==typeof t)return h.__isFullscreen||!1;var o=e.options.systemFullscreen;h.player=e,_.requestFullscreen?t?(I.IS_X5TBS&&w.on(e.video.el,"x5videoexitfullscreen",c),w.on(document,_.fullscreenchange,l),i&&i[_.requestFullscreen]()):document[_.exitFullscreen]():o&&e.video.el.webkitEnterFullScreen?(w.on(e.video.el,"webkitbeginfullscreen",u),t?e.video.el.webkitEnterFullScreen():e.video.el.webkitExitFullscreen()):(h.__isFullscreen=t,h.__isFullscreen?(h.__origOverflow=document.documentElement.style.overflow,document.documentElement.style.overflow="hidden",w.on(document,"keydown",p)):(document.documentElement.style.overflow=h.__origOverflow,w.off(document,"keydown",p)),w.toggleClass(document.body,"vcp-full-window",t),M.pub({type:b.MSG.FullScreen,src:"util",detail:{isFullscreen:h.__isFullscreen}},h.player))}function d(e){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];for(var n=0;n<i.length;n++){var r=i[n];for(var s in r)r.hasOwnProperty(s)&&(e[s]=e[s]||r[s])}return e}function f(e,t){return"undefined"==typeof t?JSON.parse(localStorage[e]||"null"):void(localStorage[e]=JSON.stringify(t))}function y(e,t){if(e=e||"0.0.0",t=t||"0.0.0",e==t)return 0;for(var i=e.split("."),o=t.split("."),n=Math.max(i.length,o.length),r=0;r<n;r++){var s=~~o[r],a=~~i[r];if(s<a)return 1;if(s>a)return-1}return-1}function v(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;").replace(/\//g,"&#x2F;")}function A(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}function m(e,t){e=e.replace(/^(http|https):/,"");var i=window.location.protocol;return"http:"!=i&&"https:"!=i&&(i=t||"https:"),e=i+e}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=h,t.extend=d,t.store=f,t.compareVersion=y,t.escapeHTML=v,t.getFormat=A,t.unifyProtocol=m;for(var g=i(2),w=o(g),b=i(4),M=o(b),S=i(1),I=o(S),E=1,_=t.FullscreenApi={requestFullscreen:null,exitFullscreen:null,fullscreenElement:null,fullscreenEnabled:null,fullscreenchange:null,fullscreenerror:null},T=[["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"]],D=T[0],L=void 0,C=0;C<T.length;C++)if(T[C][1]in document){L=T[C];break}if(L)for(var O=0;O<L.length;O++)_[D[O]]=L[O];t.CDNPath="https://cloudcache.tencent-cloud.com/open/qcloud/video/vcplayer/",t.VideoType={RTMP:"rtmp",FLV:"flv",M3U8:"m3u8"},t.console={log:function(){window.console&&window.console.log.apply(window.console,arguments)},warn:function(){window.console&&window.console.warn.apply(window.console,arguments)},error:function(){window.console&&window.console.error.apply(window.console,arguments)}},t.supportStyle=function(){var e=document.createElement("div"),t="Khtml O Moz Webkit".split(" "),i=t.length;return function(o){if(o in e.style)return!0;if("-ms-"+o in e.style)return!0;for(o=o.replace(/^[a-z]/,function(e){return e.toUpperCase()});i--;)if(t[i]+o in e.style)return!0;return!1}}()},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){var t=e.guid;return t?(h[t]=h[t]||{},h[t]):(console.error(e," has no guid."),{})}function r(e){var t=e.guid;return t?(d[t]=d[t]||{},d[t]):(console.error(e," has no guid."),{})}function s(e,t){a(e.type,e,t),a("*",e,t)}function a(e,t,i){try{var o=n(i),s=r(i);if(!o[e])return;var a=o[e];for(var l in a)if(a.hasOwnProperty(l)){var c=a[l],u=s[l];if("function"!=typeof u)return!1;for(var p=0;p<c.length;p++){var h=c[p];"*"!==h&&h!==t.src||u(t)}}}catch(e){window.console&&console.error&&console.error(e.stack||e)}}function l(e,t,i,o){var s=n(o),a=r(o);return i.guid?(a[i.guid]=i,s[e]=s[e]||{},s[e][i.guid]=s[e][i.guid]||[],s[e][i.guid].push(t),i):console.error("callback function need guid")}function c(e,t,i,o){var s=n(o),a=r(o);if(("*"==e||s[e])&&("*"==e||s[e][i.guid]))for(var l in s)if(("*"===e||l==e)&&s.hasOwnProperty(l))if("*"!==i){var c=s[l][i.guid];"*"===t&&(c=[]);for(var u=0;u<c.length;)c[u]===t?c.splice(u,1):u++;0==c.length&&delete s[l][i.guid],p.isEmpty(s[l])&&delete s[l]}else{for(var h in s[l])delete a[h];delete s[l]}}t.__esModule=!0,t.MSG=void 0,t.pub=s,t.sub=l,t.unsub=c;var u=i(3),p=o(u),h=(t.MSG={Error:"error",TimeUpdate:"timeupdate",Load:"load",MetaLoaded:"loadedmetadata",Loaded:"loadeddata",Progress:"progress",FullScreen:"fullscreen",Play:"play",Playing:"playing",Pause:"pause",Ended:"ended",Seeking:"seeking",Seeked:"seeked",Resize:"resize",VolumeChange:"volumechange",WebRTCStatUpdate:"webrtcstatupdate"},{}),d={}},function(e,t,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function n(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 r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.Player=t.dom=t.util=t.browser=t.MSG=void 0,i(6);var s=i(1),a=n(s),l=i(2),c=n(l),u=i(3),p=n(u),h=i(4),d=n(h),f=i(23),y=o(f),v=i(26),A=o(v),m=i(27),g=o(m),w=i(35),b=o(w),M=i(36),S=o(M),I=i(37),E=o(I),_=i(38),T=o(_),D=i(39),L=o(D);window.console||(window.console={log:function(){},error:function(){},debug:function(){},info:function(){}});var C=t.MSG=d.MSG,O=t.browser=a,x=t.util=p,P=t.dom=c;t.Player=function(){function e(t){r(this,e),this.options=t,this.ready=!1,this.hasPlay=!1;var i=t.owner;return i?(this.guid=x.guid(),this.listener=this.options.listener,d.sub("*","*",x.bind(this,this.handleMsg),this),i=P.get(i),this.mtaReport=new L["default"](this,this.options),void this.render(i)):console.error("Player need a container")}return e.prototype.render=function(e){var t="vcp-player";if(O.TOUCH_ENABLED&&(t+=" touchable"),this.el=P.createEl("div",{class:t}),e.appendChild(this.el),this.errortips=new T["default"](this),this.errortips.render(this.el),this.loading=new E["default"](this),this.loading.render(this.el),this.options.width=this.options.width||e.offsetWidth,this.options.height=this.options.height||e.offsetHeight,this.size(this.options.width,this.options.height),!this.verifyOptions())return this.listener({type:"error",code:5}),x.console.error("create failed");if(!this.options.flash&&O.HASVIDEO){var i=new y["default"](this);i.render(this.el),this.video=i}else{var o=new A["default"](this);o.render(this.el),this.video=o}if(!this.video)return x.console.error("create video failed");this.poster=new S["default"](this),this.poster.render(this.el),(O.IS_SAFARI&&parseInt(O.SAFARI_VERSION)>10||O.IOS_VERSION>10)&&"system"==this.options.controls||(this.bigplay=new b["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 O.IE_VERSION&&x.compareVersion(O.IE_VERSION,"8.0")==-1?(this.errortips.show({code:5}),!1):!!this.options.src||(this.options.videoSource.hasUrl()?O.IS_IE||!O.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=P.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),O.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:P.removeClass(this.el,"vcp-playing"),("none"===this.options.preload||this.options.hlsConfig&&this.options.hlsConfig.autoStartLoad===!1)&&this.loading.hide();break;case C.Play:if(!this.playing())break;!this.hasPlay&&this.options.flash&&(this.mtaReport.reportFlash(),this.hasPlay=!0),P.addClass(this.el,"vcp-playing"),this.video.type()==x.VideoType.RTMP&&(this.__wait=!0,this.loading.show()),P.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:P.off(this.el,"mousemove",this.__handleEvent),P.removeClass(this.el,"vcp-playing");break;case C.Ended:P.off(this.el,"mousemove",this.__handleEvent),this.panel&&this.panel.show(),P.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(){P.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);O.IS_X5TBS?MtaH5.clickStat("x5_err",{format:o}):MtaH5.clickStat("error",{format:o})}catch(e){}}!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(22)(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{animation:fadeIn ease .8s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.vcp-controls-panel.hide{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("+i(9)+");background-image:url("+i(10)+")\\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("+i(11)+");background-image:url("+i(12)+")\\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("+i(13)+");background-image:url("+i(14)+")\\0;display:inline-block;width:3em;height:3em;position:absolute;left:0;top:0}.vcp-volume-muted .vcp-volume-icon{background-image:url("+i(15)+");background-image:url("+i(16)+")\\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("+i(17)+");background-image:url("+i(18)+")\\0}.vcp-fullscreen .vcp-fullscreen-toggle{background-image:url("+i(19)+");background-image:url("+i(20)+')\\0}.vcp-loading{box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;display:none;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;transform:translateZ(0);animation:load8 1.1s infinite linear}@keyframes load8{0%{transform:rotate(0deg)}to{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%;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('+i(21)+");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}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.fadeOut{animation:fadeOut ease .8s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{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<this.length;t++){var i=this[t];i[2]?e.push("@media "+i[2]+"{"+i[1]+"}"):e.push(i[1]);
  2 +}return e.join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},n=0;n<this.length;n++){var r=this[n][0];"number"==typeof r&&(o[r]=!0)}for(n=0;n<t.length;n++){var s=t[n];"number"==typeof s[0]&&o[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),e.push(s))}},e}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMzYgMzYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+DQogICAgPHBhdGggZD0iTTExLDEwIEwxOCwxMy43NCAxOCwyMi4yOCAxMSwyNiBNMTgsMTMuNzQgTDI2LDE4IDI2LDE4IDE4LDIyLjI4IiBmaWxsPSIjZmZmIj48L3BhdGg+DQo8L3N2Zz4="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6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xuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+DQogICAgPHBhdGggZD0iTTExLDEwIEwxNywxMCAxNywyNiAxMSwyNiBNMjAsMTAgTDI2LDEwIDI2LDI2IDIwLDI2IiBmaWxsPSIjZmZmIj48L3BhdGg+DQo8L3N2Zz4="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAAAFoAAABaAHAjuH0AAAAHdElNRQfgBRQTADNsu4KlAAAAfklEQVRYw+2WsQ2AMAwEPyiZimloWIqOhjHYg1VAMi1Ejo2l0P2VH/kvnQ0QQohLaj9Jl6ocnBInDwpGzI+qgh0LxMhjCGSSN5skaeY6g+m4qn+dTh4WdIACCiiggAIKfEGulntxcrXC4sBaLXc7V/DuosDZolf9fngRQsgHbrk8P6SPYKxbAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE2LTA1LTIwVDE5OjAwOjI0KzA4OjAwi3r4LQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNi0wNS0yMFQxOTowMDo1MSswODowMKLaZi8AAAA8dEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL0Q6L3NwYWNlL3ZjX3BsYXllci9zcmMvaW1nL3N0b3BfYnRuLnN2Z0xvOgsAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMzYgMzYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+DQogICAgPHBhdGggZD0iTTEyLjM5LDE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0odm0+AsuqiKJW1AjgAHI1TuAZcAJ4Dq4FdQHuc/BBwB3iYdxr9l9GhXlLH1CH1nNqn/pqUtcYjHR9XG/NKo/8z6tXtFdJuWT/V02pzUfuBveqPKhBf1FNF7Qfqw7SVtAzYVtR+4DEwXMt/JV4CZ4GvVSCvFLmpXxheeDAl9sej4emKZwrR0FRSO7AH2BAFbiCK3rv5KmTpz1wCSAAJIAEkgASQAGpZfwcAT9esWbDao2gAAAAASUVORK5CYII="},function(e,t,i){function o(e,t){for(var i=0;i<e.length;i++){var o=e[i],n=d[o.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](o.parts[r]);for(;r<o.parts.length;r++)n.parts.push(c(o.parts[r],t))}else{for(var s=[],r=0;r<o.parts.length;r++)s.push(c(o.parts[r],t));d[o.id]={id:o.id,refs:1,parts:s}}}}function n(e){for(var t=[],i={},o=0;o<e.length;o++){var n=e[o],r=n[0],s=n[1],a=n[2],l=n[3],c={css:s,media:a,sourceMap:l};i[r]?i[r].parts.push(c):t.push(i[r]={id:r,parts:[c]})}return t}function r(e,t){var i=v(),o=g[g.length-1];if("top"===e.insertAt)o?o.nextSibling?i.insertBefore(t,o.nextSibling):i.appendChild(t):i.insertBefore(t,i.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");i.appendChild(t)}}function s(e){e.parentNode.removeChild(e);var t=g.indexOf(e);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=m++;i=A||(A=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=w(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(self.navigator.userAgent.toLowerCase())}),v=f(function(){return document.head||document.getElementsByTagName("head")[0]}),A=null,m=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;s<i.length;s++){var a=i[s],l=d[a.id];l.refs--,r.push(l)}if(e){var c=n(e);o(c,t)}for(var s=0;s<r.length;s++){var l=r[s];if(0===l.refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete d[l.id]}}}};var w=function(){var e=[];return function(t,i){return e[t]=i,e.filter(Boolean).join("\n")}}()},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="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=i(24),u=n(c),p=i(2),h=o(p),d=i(3),f=o(d),y=i(4),v=i(25),A=o(v),m=i(1),g=o(m),w=(f.FullscreenApi,{"0.7.1":"libs/hls.js","0.7min":"libs/hls.min.js","0.8.1":"libs/hls0.8.js","0.8.9":"libs/hls.min.0.8.9.js","0.12.4":"libs/hls.min.0.12.4.js"}),b=function(e){function t(i){return r(this,t),s(this,e.call(this,i,"H5Video"))}return a(t,e),t.prototype.render=function(t){var i,o=this.player.options,n="system"==o.controls?"":null,r=!!o.autoplay||null;return i=o.poster&&"object"==l(o.poster)?o.poster.src:"string"==typeof o.poster?o.poster:null,this.createEl("video",{controls:n,preload:o.preload||"auto",autoplay:r,"webkit-playsinline":"",playsinline:"","x-webkit-airplay":"allow","x5-video-player-type":"h5-page"==o.x5_type?"h5-page":null,"x5-video-player-fullscreen":!!o.x5_fullscreen||null,"x5-video-orientation":["landscape","portrait","landscape|portrait"][o.x5_orientation]||null,"x5-playsinline":1==!!o.x5_playsinline?o.x5_playsinline:null,"x5-mse-live-streaming":o.live?"":null}),this.el.style.width=this.player.width,this.el.style.height=this.player.height,e.prototype.render.call(this,t)},t.prototype.__hlsLoaded=function(e){if(!Hls.isSupported())return this.notify({type:"error",code:5,timeStamp:+new Date});this.flv&&(this.flv.unload(),this.flv.detachMediaElement()),this.hls&&(this.hls.stopLoad(),this.hls.detachMedia(),this.hls.destroy()),this.webrtc&&this.webrtc.stopPlay();var t=new Hls(this.options.hlsConfig);t.loadSource(e),t.attachMedia(this.el),t.on(Hls.Events.MANIFEST_PARSED,function(e,t){}),t.on(Hls.Events.MEDIA_DETACHED,function(){}),t.on(Hls.Events.ERROR,f.bind(this,this.__hlsOnError)),this.hls=t},t.prototype.__hlsOnManifestParsed=function(e,t){this.metaDataLoaded=!0},t.prototype.__hlsOnError=function(e,t){var i=t.type,o=t.details,n=t.fatal,r=this.hls;if(n)switch(i){case Hls.ErrorTypes.NETWORK_ERROR:o.indexOf("TimeOut")>0?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.__webrtcLoaded=function(e){this.hls&&(this.hls.stopLoad(),this.hls.detachMedia()),this.flv&&(this.flv.detachMediaElement(),this.flv.destroy());var t=this,i=this.player.options.webrtcConfig,o=new TXLivePlayer;o.setPlayerView(this.el),i&&i.streamType?"video"===i.streamType?o.setConfig({receiveVideo:!0,receiveAudio:!1}):"audio"===i.streamType?o.setConfig({receiveVideo:!1,receiveAudio:!0}):o.setConfig({receiveVideo:!0,receiveAudio:!0}):o.setConfig({receiveVideo:!0,receiveAudio:!0}),o.startPlay(e),o.setPlayListener({onPlayEvent:function(e,i){if(1006===e){var o={type:"webrtcstop",timeStamp:+new Date};return t.notify(o),!1}if(1009===e){var o={type:"webrtcwaitstart",timeStamp:+new Date};return t.notify(o),!1}if(1010===e){var o={type:"webrtcwaitend",timeStamp:+new Date};return t.notify(o),!1}var o={type:"error"};return e===-2001&&(o.code=2001),e===-2002&&(o.code=2002),e===-2004&&(o.code=2003),e===-2005?(t.__convertProtocol(t.options.src,t.options.m3u8?f.VideoType.M3U8:""),!1):void(o.code&&(i&&(o.reason=i.message),o.timeStamp=+new Date,t.notify(o)))},onPlayStats:function(e){t.notify({type:y.MSG.WebRTCStatUpdate,detail:e,timeStamp:+new Date})}}),this.webrtc=o},t.prototype.__flvLoaded=function(e){if(!flvjs.isSupported())return this.notify({type:"error",code:5,timeStamp:+new Date});this.hls&&(this.hls.stopLoad(),this.hls.detachMedia()),this.flv&&(this.flv.detachMediaElement(),this.flv.destroy()),this.webrtc&&this.webrtc.stopPlay();var t=flvjs.createPlayer(Object.assign({type:"flv",isLive:this.player.options.live,url:e},this.options.flvConfig));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=A.PlayStates.IDLE,this.seekState=A.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(),this.flv&&this.flv.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]||e.reason;break;case y.MSG.Ended:this.pause(),this.playState=A.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=A.PlayStates.PAUSED;break;case y.MSG.Seeking:case y.MSG.Seeked:this.seekState=e.type.toUpperCase();break;case y.MSG.WebRTCStatUpdate:t.detail=e.detail}"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.hlsConfig&&this.options.hlsConfig.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){var i=this,o=e.indexOf("webrtc://")>-1||e.indexOf(".sdp")>-1;this.pub({type:y.MSG.Load,src:this,ts:+new Date,detail:{src:e,type:t}}),o?g.IS_ENABLED_WEBRTC.then(function(o){o?"undefined"==typeof window.TXLivePlayer?h.loadScript(f.unifyProtocol("https://cloudcache.tencent-cloud.com/open/qcloud/live/webrtc/js/TXLivePlayer-1.1.0.min.js"),function(){i.__webrtcLoaded.call(i,e)}):i.__webrtcLoaded(e):i.__convertProtocol(e,t)})["catch"](function(o){i.__convertProtocol(e,t)}):this.__load(e,t)},t.prototype.__convertProtocol=function(e,t){g.IS_ENABLED_MSE?g.IS_MOBILE?(e.indexOf(".sdp")>-1?e=e.replace(".sdp",".m3u8"):(e=e.replace("webrtc://","https://").replace("?",".m3u8?"),e.indexOf("?")===-1&&e.indexOf(".m3u8")===-1&&(e+=".m3u8")),this.__load(e,t)):(e.indexOf(".sdp")>-1?e=e.replace(".sdp",".flv"):(e=e.replace("webrtc://","https://").replace("?",".flv?"),e.indexOf("?")===-1&&e.indexOf(".flv")===-1&&(e+=".flv")),this.__load(e,t)):this.notify({type:"error",code:2e3,timeStamp:+new Date})},t.prototype.__load=function(e,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.hls&&(this.hls.stopLoad(),this.hls.detachMedia()),this.flv&&(this.flv.unload(),this.flv.detachMediaElement()),this.__type=t,this.el.src=e;else{var n=this,r=w[this.options.hls]||w["0.7.1"];i?(this.__type=f.VideoType.M3U8,"undefined"==typeof window.Hls?h.loadScript(f.unifyProtocol(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.unifyProtocol(f.CDNPath+"libs/flv.min.1.5.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"]=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,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(){},
  3 +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(e){}}},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(24),u=n(c),p=i(4),h=i(2),d=o(h),f=i(3),y=o(f),v=i(25),A=o(v),m=i(1),g=o(m),w=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=y.unifyProtocol(t.flashUrl||"//cloudcache.tencent-cloud.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<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="" id="'+n+'" width="100%" height="100%">\n <param name="movie" value="'+i+'" />\n <param name="quality" value="autohigh" />\n <param name="swliveconnect" value="true" />\n <param name="allowScriptAccess" value="always" />\n <param name="bgcolor" value="#000" />\n <param name="allowFullScreen" value="true" />\n <param name="wmode" value="'+o+'" />\n <param name="FlashVars" value="cbName='+r+'" />\n\n <embed src="'+i+'" width="100%" height="100%" name="'+n+'"\n quality="autohigh"\n bgcolor="#000"\n align="middle" allowFullScreen="true"\n allowScriptAccess="always"\n type="application/x-shockwave-flash"\n swliveconnect="true"\n wmode="'+o+'"\n FlashVars="cbName='+r+'"\n pluginspage="http://www.macromedia.com/go/getflashplayer" >\n </embed>\n </object>\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=A.PlayStates.IDLE,this.seekState=A.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(e){return void this.endPolling()}if(this.__m3u8){var t=this.currentTime()+e.bufferLength;this.__buffered!==t&&(this.__buffered=t,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{try{this.el.setAutoPlay(!!this.options.autoplay)}catch(e){console.warn("Flash 调用失败,请检查Flash是否启用成功")}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==A.PlayStates.PLAYING?(this.__playing=!0,this.__stopped=!1,i.type=p.MSG.Play):t.playState==A.PlayStates.PAUSED?(this.__playing=!1,this.__stopped=!1,i.type=p.MSG.Pause):t.playState==A.PlayStates.STOP?(this.__playing=!1,this.__stopped=!0,i.type=p.MSG.Ended,this.__prevPlayState=null,this.options.live&&(this.metaDataLoaded=!1)):t.playState==A.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==A.SeekStates.SEEKING)i.type=p.MSG.Seeking;else{if(t.seekState!=A.SeekStates.SEEKED)return;this.__m3u8||this.options.live||t.playState!=A.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==A.PlayStates.PAUSED||this.__prevPlayState==A.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==A.PlayStates.STOP?(i.type="error",t={code:13,reason:t.code}):(i.type="error",t={code:1002,reason:t.code}):this.playState=A.PlayStates.IDLE),"NetStream.Play.Stop"!=t.code&&"NetConnection.Connect.Success"!=t.code&&"NetConnection.Connect.Failed"!=t.code||(this.playState=A.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(t){y.console.error(e+" "+i.type,t)}},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==A.PlayStates.PAUSED||this.playState==A.PlayStates.PLAYING||e?this.el.playerResume():this.playState!=A.PlayStates.PLAYING&&this.el.playerPlay()},t.prototype.togglePlay=function(){if(this.metaDataLoaded)if(this.playState==A.PlayStates.PAUSED)this.el.playerResume();else if(this.playState==A.PlayStates.PLAYING)this.el.playerPause();else if(this.playState==A.PlayStates.STOP)this.currentTime(0),this.el.playerResume();else try{this.el.playerPlay()}catch(e){console.warn("Flash 调用失败,请检查Flash是否启用成功")}else 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===A.PlayStates.PLAYING},t.prototype.type=function(){return this.__type},t.prototype.state=function(){return this.playState},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){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(24),c=n(l),u=i(28),p=n(u),h=i(29),d=n(h),f=i(30),y=i(31),v=n(y),A=i(32),m=n(A),g=i(33),w=n(g),b=i(34),M=n(b),S=i(4),I=i(2),E=o(I),_=i(3),T=o(_),D=i(1),L=o(D),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(E.createEl("div",{class:"vcp-panel-bg"})),this.playToggle=new p["default"](this.player),this.playToggle.render(this.el),this.timelabel=new m["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)),L.IS_MOBILE||(this.volume=new w["default"](this.player),this.volume.render(this.el)),this.options.videoSource&&this.options.videoSource.definitions.length>1&&!L.IS_MOBILE&&(this.claritySwitcher=new M["default"](this.player),this.claritySwitcher.render(this.el)),e.prototype.render.call(this,t)},t.prototype.setup=function(){var e=T.bind(this,this.handleMsg);this.sub(f.MSG.Changing,this.volume,e),this.sub(f.MSG.Changed,this.timeline.progress,e),this.sub(S.MSG.TimeUpdate,this.player.video,e),this.sub(S.MSG.Progress,this.player.video,e),this.sub(S.MSG.MetaLoaded,this.player.video,e),this.sub(S.MSG.Pause,this.player.video,e),this.sub(S.MSG.Play,this.player.video,e),this.sub(S.MSG.Ended,this.player.video,e)},t.prototype.handleMsg=function(e){switch(e.type){case S.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 S.MSG.TimeUpdate:this.timeline.scrubbing||this.timeline.percent(this.player.percent());break;case S.MSG.Pause:this.show();break;case S.MSG.Play:this.hide();break;case S.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 S.MSG.Ended:this.show()}},t.prototype.toggle=function(){E.hasClass(this.el,"show")?this.hide():this.show()},t.prototype.show=function(){E.hasClass(this.el,"hide")&&(E.removeClass(this.el,"hide"),E.addClass(this.el,"show"))},t.prototype.hide=function(){E.removeClass(this.el,"show"),E.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(24),c=n(l),u=i(2),p=(o(u),i(4)),h=(o(p),i(3)),d=(o(h),i(25)),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(24),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(24),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(30),c=n(l),u=i(24),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.__buffered<e&&this.buffered(this.player.buffered()),this.progress.percent(e))},t}(p["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(30),c=(n(l),i(24)),u=n(c),p=i(2),h=(o(p),i(3)),d=o(h),f=function(e){function t(i){return r(this,t),s(this,e.call(this,i,"Timelabel"))}return a(t,e),t.prototype.render=function(t){return this.createEl("span",{class:"vcp-timelabel"}),e.prototype.render.call(this,t)},t.prototype.setup=function(){this.sub("timelabel","timeline",d.bind(this,this.handleMsg))},t.prototype.handleMsg=function(e){this.el.innerHTML=e.label},t}(u["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(30),c=n(l),u=i(24),p=n(u),h=i(2),d=o(h),f=i(3),y=o(f),v=i(4),A=function(e){function t(i){return r(this,t),s(this,e.call(this,i,"Volume"))}return a(t,e),t.prototype.render=function(t){return this.createEl("div",{class:"vcp-volume"}),this.bg=d.createEl("div",{class:"vcp-volume-bg"}),this.el.appendChild(this.bg),this.volume=new c["default"](this.player,!0),this.volume.render(this.el),this.track=this.volume.track,this.icon=d.createEl("span",{class:"vcp-volume-icon"}),this.el.appendChild(this.icon),e.prototype.render.call(this,t)},t.prototype.setup=function(){this.sub(l.MSG.Changing,this.volume,y.bind(this,this.handleMsg)),this.sub(l.MSG.Changed,this.volume,y.bind(this,this.handleMsg)),this.sub(v.MSG.VolumeChange,this.player.video,y.bind(this,this.handleMsg)),this.on(this.icon,"click",this.toggleMute)},t.prototype.handleMsg=function(e){switch(e.type){case l.MSG.Changing:this.syncTrack(this.percent());break;case l.MSG.Changed:this.percent(this.percent());break;case v.MSG.VolumeChange:var t=this.player.volume();this.syncTrack(t),0==t?this.syncMute(!0):t>0&&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"]=A},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(24),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;o<i.definitions.length;o++){var n=p.createEl("a",{class:"vcp-vertical-switcher-item"});n.innerHTML=f[i.definitions[o]],i.definitions[o]==i.curDef&&(p.addClass(n,"current"),this.currentItem=n),n.setAttribute("data-def",i.definitions[o]),this.items.push(n),this.container.appendChild(n)}return this.el.appendChild(this.container),e.prototype.render.call(this,t)},t.prototype.setup=function(){this.on("click",this.onClick),this.on("mouseenter",this.onMouseEnter),this.on("mouseleave",this.onMouseLeave)},t.prototype.onClick=function(e){var t=e.target.getAttribute("data-def");t?(this.current.innerHTML=f[t],p.removeClass(this.currentItem,"current"),p.addClass(e.target,"current"),this.currentItem=e.target,this.player._switchClarity(t)):!this.show},t.prototype.onMouseLeave=function(){this.container.style.display="none",this.show=!1},t.prototype.onMouseEnter=function(){this.container.style.display="block",this.show=!0},t.prototype.setClarity=function(e){e&&(this.current.innerHTML=f[e],p.removeClass(document.querySelector(".vcp-vertical-switcher-item.current"),"current"),p.addClass(document.querySelector('.vcp-vertical-switcher-item[data-def="'+e+'"]'),"current"),this.currentItem=document.querySelector('.vcp-vertical-switcher-item[data-def="'+e+'"]'),this.player._switchClarity(e))},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(24),c=n(l),u=i(1),p=o(u),h=function(e){function t(i){return r(this,t),s(this,e.call(this,i,"BigPlay"))}return a(t,e),t.prototype.render=function(t){return this.createEl("div",{class:"vcp-bigplay"}),e.prototype.render.call(this,t)},t.prototype.setup=function(){this.on("click",this.onClick)},t.prototype.onClick=function(){var e=this.player.video;return p.IS_MOBILE&&!e.paused()?this.player.panel&&this.player.panel.toggle():void this.player.togglePlay()},t.prototype.handleMsg=function(e){console.log("@"+this.name,e)},t}(c["default"]);t["default"]=h},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="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=i(24),u=n(c),p=i(2),h=o(p),d=i(3),f=o(d),y=i(1),v=o(y),A=i(4),m=function(e){function t(i){r(this,t);var o=s(this,e.call(this,i,"Poster"));return o.options.poster&&"object"==l(o.options.poster)?o.poster=o.options.poster:"string"==typeof o.options.poster?o.poster={src:o.options.poster}:o.poster={},o}return a(t,e),t.prototype.render=function(t){this.createEl("div",{class:"vcp-poster"}),this.hide();var i=this.poster;if(i){this.pic=h.createEl("img",{class:"vcp-poster-pic"});var o=this.poster.style;switch(o){case"stretch":h.addClass(this.pic,"stretch");break;case"cover":h.addClass(this.pic,"cover");break;default:h.addClass(this.pic,"default")}this.el.appendChild(this.pic)}return e.prototype.render.call(this,t)},t.prototype.setup=function(){this.on("click",this.onClick),this.sub(A.MSG.Load,this.player.video,f.bind(this,this.handleMsg)),this.sub(A.MSG.MetaLoaded,this.player.video,f.bind(this,this.handleMsg)),this.sub(A.MSG.Play,this.player.video,f.bind(this,this.handleMsg)),this.sub(A.MSG.Pause,this.player.video,f.bind(this,this.handleMsg)),this.sub(A.MSG.Ended,this.player.video,f.bind(this,this.handleMsg)),this.sub(A.MSG.Error,this.player.video,f.bind(this,this.handleMsg))},t.prototype.onClick=function(){this.pub({type:"click",src:this}),(v.IS_SAFARI&&parseInt(v.SAFARI_VERSION)>10||v.IOS_VERSION>10)&&"system"==this.player.options.controls&&this.player.togglePlay()},t.prototype.handleMsg=function(e){switch(e.type){case A.MSG.Load:this.__loaded=!1,this.setPoster(this.poster.start);break;case A.MSG.MetaLoaded:if(this.__loaded=!0,!this.player.playing())break;this.hide();case A.MSG.Play:if(!this.__loaded)break;this.hide();break;case A.MSG.Pause:if(!this.__loaded)break;this.options.pausePosterEnabled===!0&&this.setPoster(this.poster.pause);break;case A.MSG.Ended:if(!this.__loaded)break;break;case A.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.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";
  4 +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"]=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(24),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(24),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引用的实例无法支持全屏",WebrtcEnvError:"当前环境不支持 WebRTC 格式文件播放",WebrtcApiError:"调用 WebRTC 接口失败",WebrtcPullStreamError:"调用拉流接口失败",WebrtcConnectError:"连接服务器失败,并且连接重试次数已超过设定值",WebrtcDecodeError:"WebRTC 解码失败"},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],WebrtcEnvError:[2e3],WebrtcApiError:[2001],WebrtcPullStreamError:[2002],WebrtcConnectError:[2003],WebrtcDecodeError:[2004]},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<y[n].length;a++){var l=y[n][a];o.customTips[l]=o.customTips[l]||o.customTips[n]}return o}return a(t,e),t.prototype.render=function(t){return this.createEl("div",{class:"vcp-error-tips"}),e.prototype.render.call(this,t)},t.prototype.setup=function(){},t.prototype.handleMsg=function(e){},t.prototype.show=function(e){this.el.style.display="block";var t=void 0;if("string"==typeof e)t=e;else{var i=this.customTips[e.code]||e.reason;t="["+e.code+"]"+i}this.el.innerHTML=d.escapeHTML(t)},t.prototype.hide=function(){this.el.style.display="none"},t.prototype.clear=function(){this.el.innerHTML="",this.hide()},t}(c["default"]);t["default"]=v},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")}t.__esModule=!0;var r=i(1),s=o(r),a=i(2),l=o(a),c=i(3),u=function(){function e(t,i){n(this,e),this.player=t,this.options=i,this.load()}return e.prototype.load=function(){l.loadScript((0,c.unifyProtocol)("//pingjs.qq.com/h5/stats.js?v2.0.4"),null,{name:"MTAH5",sid:"500376528",cid:"500383222"},!0)},e.prototype.report=function(){window.MtaH5&&(0==this.player.duration()||this.player.duration()==1/0?MtaH5.clickStat("live",{live:"true"}):MtaH5.clickStat("vod",{vod:"true"}))},e.prototype.reportFlash=function(){if(window.MtaH5){var e=this.options.videoSource,t=(0,c.getFormat)(e),i={browser:s.BROWSER_TYPE,mse:!!s.IS_ENABLED_MSE,format:t};MtaH5.clickStat("flash",i)}},e}();t["default"]=u}])});
0 5 \ No newline at end of file
... ...
public/static/TcPlayer/TcPlayer-module-2.4.1.js 0 → 100644
  1 +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.TcPlayer=t():e.TcPlayer=t()}(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?b.mobile=["webrtc","flv","m3u8","mp4"]:d.IS_ENABLED_MSE&&e.h5_flv&&(b.mobile=["webrtc","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)?b.pc=["webrtc","flv","m3u8","mp4"]:b.pc=["webrtc","m3u8","mp4"]:b.pc=["webrtc","mp4"]):d.IS_ENABLED_MSE?e.h5_flv&&(d.IS_SAFARI&&v.compareVersion(d.SAFARI_VERSION,"10.1")>-1||!d.IS_SAFARI)?b.pc=["webrtc","flv","m3u8","mp4"]:b.pc=["webrtc","m3u8","mp4"]:d.IS_ENABLED_FLASH?e.flash=!0:b.pc=["webrtc","mp4"]),e.clarity){var i=M.indexOf(e.clarity);M.splice(i,1),M.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||""},webrtc:{od:e.webrtc||"",hd:e.webrtc_hd||"",sd:e.webrtc_sd||""}},isClarity:function(e){var i=t.urls;return!!(i.m3u8[e]||i.flv[e]||i.mp4[e]||i.rtmp[e]||i.webrtc[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")||this.isFormat("webrtc")}};t.definitions=[];for(var i=0;i<M.length;i++)t.isClarity(M[i])&&t.definitions.push(M[i]);a(e,t);var o=p(t);return o&&(t.curUrl=o.url,t.curDef=o.definition,t.curFormat=o.format),t}function c(e,t,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:b,n="",r=void 0;i=i||(d.IS_MOBILE?o.mobile:o.pc);for(var s=0;s<i.length;s++)if(n=i[s],e[n][t]){r={definition:t,url:e[n][t],format:n};break}return r}function u(e,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M,o="",n=0;n<i.length;n++)if(o=i[n],e[t][o])return{definition:o,url:e[t][o]}}function p(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b,i=void 0,o="",n=e.urls,r=d.IS_MOBILE?t.mobile:t.pc,s=0;s<r.length;s++)if(o=r[s],e.isFormat(o)){i=u(n,o),i.format=o;break}return i}t.__esModule=!0,t.TcPlayer=void 0;var h=i(1),d=o(h),f=i(2),y=(o(f),i(3)),v=o(y),A=i(4),m=o(A),g=i(5),w=m.MSG,b={mobile:["webrtc","m3u8","mp4"],pc:["webrtc","rtmp","flv","m3u8","mp4"]},M=["od","hd","sd"];t.TcPlayer=function(e){function t(i,o){n(this,t);var s=l(o);M=["od","hd","sd"];var a={owner:i,videoSource:s,src:s.curUrl,autoplay:o.autoplay,live:o.live,flash:o.flash,flashUrl:o.flashUrl,poster:o.poster,width:o.width,height:o.height,volume:o.volume,listener:o.listener,wording:o.wording,controls:o.controls,clarity:o.clarity,clarityLabel:o.clarityLabel,showLoading:"boolean"!=typeof o.showLoading||o.showLoading,pausePosterEnabled:void 0===o.pausePosterEnabled||o.pausePosterEnabled,fullscreenEnabled:void 0===o.fuScrnEnabled||o.fuScrnEnabled,systemFullscreen:o.systemFullscreen||!1,hls:o.hls||"0.12.4",h5_flv:o.h5_flv,x5_player:o.x5_player!==!1,x5_type:o.x5_type,x5_fullscreen:o.x5_fullscreen,x5_orientation:o.x5_orientation,x5_playsinline:o.x5_playsinline,preload:o.preload||"auto",hlsConfig:o.hlsConfig,flvConfig:o.flvConfig,webrtcConfig:o.webrtcConfig};return r(this,e.call(this,a))}return s(t,e),t.prototype._switchClarity=function(e){e=e||"od";var t=this.currentTime(),i=this.options.videoSource,o=c(i.urls,e),n=this.playing();this.load(o.url),i.curUrl=o.url,i.curDef=o.definition,i.curFormat=o.format;var r=v.bind(this,function(){parseInt(this.duration()-t)>0&&!this.options.live&&this.currentTime(t),n&&this.play(!0),m.unsub(w.MetaLoaded,"*",r,this)});m.sub(w.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+)_(\d+)_?(\d+)?/i);return e&&[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]||[]}(),u=(t.IS_MAC=/Mac/i.test(i),t.IS_ANDROID=/Android/i.test(i)),p=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}(),h=(t.IS_OLD_ANDROID=u&&/webkit/i.test(i)&&p<2.3,t.IS_NATIVE_ANDROID=u&&p<5&&n<537,t.IS_FIREFOX=/Firefox/i.test(i)),d=t.FIREFOX_VERSION=h&&function(){var e=i.match(/Firefox\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),f=t.IS_EDGE=/Edge/i.test(i),y=t.IS_EDG=/Edg/i.test(i),v=t.EDG_VERSION=y&&function(){var e=i.match(/Edg\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),A=t.IS_CHROME=!f&&/Chrome/i.test(i),m=t.IS_SAFARI=!f&&!A&&/Safari/i.test(i),g=(t.SAFARI_VERSION=function(){if(!m)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)),w=(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)),b=(t.TBS_VERSION=function(){var e=i.match(/TBS\/(\d+)/i);if(e&&e[1])return e[1]}(),t.IS_MQQB=!w&&/MQQBrowser\/\d+/i.test(i),t.IS_QQB=!w&&/ QQBrowser\/\d+/i.test(i),t.IS_WECHAT=/(micromessenger|webbrowser)/i.test(i),t.IS_UC=/UCBrowser\/(\d+)\./i.test(i)),M=(t.IS_MQQ=/ QQ\/\d+/i.test(i),t.IS_MOBILE=u||l,t.IS_FILE_PROTOCOL=/file:/.test(location.protocol),t.FLASH_VERSION=null),S=(t.IS_ENABLED_FLASH=function(){var e;if(document.all||g)try{if(e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return t.FLASH_VERSION=M=e.GetVariable("$version").split(" ")[1].replace(/,/g,"."),window.console&&console.log("FLASH_VERSION",M),!0}catch(e){return!1}else try{if(navigator.plugins&&navigator.plugins.length>0&&(e=navigator.plugins["Shockwave Flash"])){for(var i=e.description.split(" "),o=0;o<i.length;++o)isNaN(parseInt(i[o]))||(t.FLASH_VERSION=M=i[o],window.console&&console.log("FLASH_VERSION",parseInt(i[o])));return!0}}catch(e){return!1}return!1}(),t.IS_ENABLED_MSE=function(){var e=window.MediaSource=window.MediaSource||window.WebKitMediaSource,t=window.SourceBuffer=window.SourceBuffer||window.WebKitSourceBuffer,i=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),o=!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove;if(!l)return i&&o}(),t.BROWSER_TYPE=function(){return i.indexOf("Edge")>-1?"Edge":i.indexOf(".NET")>-1?"IE":i.indexOf("QQBrowser")>-1?"QQBrowser":i.indexOf("Mac OS")>-1?"safari":i.indexOf("Chrome")>-1?"chrome":"other"}(),t.isBrowserSupportWebRTC=function(){var e=56,t=80;return!b&&!f&&(!(y&&v<t)&&(!(h&&d<e)&&!(!w&&m&&l&&(0===c.length||c[0]<11||11===c[0]&&c[1]<1||11===c[0]&&1===c[1]&&c[2]<2))))});t.IS_ENABLED_WEBRTC=function(){var e=function(){if(!S())return!1;var e=!1;return["RTCPeerConnection","webkitRTCPeerConnection","RTCIceGatherer"].forEach(function(t){e||t in window&&(e=!0)}),e},t=new Promise(function(t,i){try{var o={iceServers:[],sdpSemantics:"unified-plan"},n=new RTCPeerConnection(o),r={};n.addTransceiver?(n.addTransceiver("audio",{direction:"recvonly"}),n.addTransceiver("video",{direction:"recvonly"})):r={offerToReceiveVideo:!0,offerToReceiveAudio:!0},n.createOffer(r).then(function(i){var o=i.sdp.toLowerCase().indexOf("h264")>-1;n.close(),t(e()&&o)})}catch(e){i()}});return t}()},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 E++}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;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){h.__isFullscreen=!!document[_.fullscreenElement],h.__isFullscreen||(I.IS_X5TBS&&w.off(h.player.video.el,"x5videoexitfullscreen",c),w.off(document,_.fullscreenchange,l)),M.pub({type:b.MSG.FullScreen,src:"util",ts:e.timeStamp,detail:{isFullscreen:h.__isFullscreen}},h.player)}function c(e){"x5videoexitfullscreen"===e.type&&(h.__isFullscreen=!1,w.off(document,_.fullscreenchange,l),w.off(h.player.video.el,"x5videoexitfullscreen",c),M.pub({type:b.MSG.FullScreen,src:"util",ts:e.timeStamp,detail:{isFullscreen:!1}},h.player))}function u(e){"webkitbeginfullscreen"==e.type?(w.off(h.player.video.el,"webkitbeginfullscreen",u),w.on(h.player.video.el,"webkitendfullscreen",u),M.pub({type:b.MSG.FullScreen,src:"util",ts:e.timeStamp,detail:{isFullscreen:!0}},h.player)):"webkitendfullscreen"==e.type&&(w.off(h.player.video.el,"webkitendfullscreen",u),M.pub({type:b.MSG.FullScreen,src:"util",ts:e.timeStamp,detail:{isFullscreen:!1}},h.player))}function p(e){27===e.keyCode&&h(h.player,!1)}function h(e,t,i){if("undefined"==typeof t)return h.__isFullscreen||!1;var o=e.options.systemFullscreen;h.player=e,_.requestFullscreen?t?(I.IS_X5TBS&&w.on(e.video.el,"x5videoexitfullscreen",c),w.on(document,_.fullscreenchange,l),i&&i[_.requestFullscreen]()):document[_.exitFullscreen]():o&&e.video.el.webkitEnterFullScreen?(w.on(e.video.el,"webkitbeginfullscreen",u),t?e.video.el.webkitEnterFullScreen():e.video.el.webkitExitFullscreen()):(h.__isFullscreen=t,h.__isFullscreen?(h.__origOverflow=document.documentElement.style.overflow,document.documentElement.style.overflow="hidden",w.on(document,"keydown",p)):(document.documentElement.style.overflow=h.__origOverflow,w.off(document,"keydown",p)),w.toggleClass(document.body,"vcp-full-window",t),M.pub({type:b.MSG.FullScreen,src:"util",detail:{isFullscreen:h.__isFullscreen}},h.player))}function d(e){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];for(var n=0;n<i.length;n++){var r=i[n];for(var s in r)r.hasOwnProperty(s)&&(e[s]=e[s]||r[s])}return e}function f(e,t){return"undefined"==typeof t?JSON.parse(localStorage[e]||"null"):void(localStorage[e]=JSON.stringify(t))}function y(e,t){if(e=e||"0.0.0",t=t||"0.0.0",e==t)return 0;for(var i=e.split("."),o=t.split("."),n=Math.max(i.length,o.length),r=0;r<n;r++){var s=~~o[r],a=~~i[r];if(s<a)return 1;if(s>a)return-1}return-1}function v(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;").replace(/\//g,"&#x2F;")}function A(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}function m(e,t){e=e.replace(/^(http|https):/,"");var i=window.location.protocol;return"http:"!=i&&"https:"!=i&&(i=t||"https:"),e=i+e}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=h,t.extend=d,t.store=f,t.compareVersion=y,t.escapeHTML=v,t.getFormat=A,t.unifyProtocol=m;for(var g=i(2),w=o(g),b=i(4),M=o(b),S=i(1),I=o(S),E=1,_=t.FullscreenApi={requestFullscreen:null,exitFullscreen:null,fullscreenElement:null,fullscreenEnabled:null,fullscreenchange:null,fullscreenerror:null},T=[["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"]],D=T[0],L=void 0,C=0;C<T.length;C++)if(T[C][1]in document){L=T[C];break}if(L)for(var O=0;O<L.length;O++)_[D[O]]=L[O];t.CDNPath="https://cloudcache.tencent-cloud.com/open/qcloud/video/vcplayer/",t.VideoType={RTMP:"rtmp",FLV:"flv",M3U8:"m3u8"},t.console={log:function(){window.console&&window.console.log.apply(window.console,arguments)},warn:function(){window.console&&window.console.warn.apply(window.console,arguments)},error:function(){window.console&&window.console.error.apply(window.console,arguments)}},t.supportStyle=function(){var e=document.createElement("div"),t="Khtml O Moz Webkit".split(" "),i=t.length;return function(o){if(o in e.style)return!0;if("-ms-"+o in e.style)return!0;for(o=o.replace(/^[a-z]/,function(e){return e.toUpperCase()});i--;)if(t[i]+o in e.style)return!0;return!1}}()},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){var t=e.guid;return t?(h[t]=h[t]||{},h[t]):(console.error(e," has no guid."),{})}function r(e){var t=e.guid;return t?(d[t]=d[t]||{},d[t]):(console.error(e," has no guid."),{})}function s(e,t){a(e.type,e,t),a("*",e,t)}function a(e,t,i){try{var o=n(i),s=r(i);if(!o[e])return;var a=o[e];for(var l in a)if(a.hasOwnProperty(l)){var c=a[l],u=s[l];if("function"!=typeof u)return!1;for(var p=0;p<c.length;p++){var h=c[p];"*"!==h&&h!==t.src||u(t)}}}catch(e){window.console&&console.error&&console.error(e.stack||e)}}function l(e,t,i,o){var s=n(o),a=r(o);return i.guid?(a[i.guid]=i,s[e]=s[e]||{},s[e][i.guid]=s[e][i.guid]||[],s[e][i.guid].push(t),i):console.error("callback function need guid")}function c(e,t,i,o){var s=n(o),a=r(o);if(("*"==e||s[e])&&("*"==e||s[e][i.guid]))for(var l in s)if(("*"===e||l==e)&&s.hasOwnProperty(l))if("*"!==i){var c=s[l][i.guid];"*"===t&&(c=[]);for(var u=0;u<c.length;)c[u]===t?c.splice(u,1):u++;0==c.length&&delete s[l][i.guid],p.isEmpty(s[l])&&delete s[l]}else{for(var h in s[l])delete a[h];delete s[l]}}t.__esModule=!0,t.MSG=void 0,t.pub=s,t.sub=l,t.unsub=c;var u=i(3),p=o(u),h=(t.MSG={Error:"error",TimeUpdate:"timeupdate",Load:"load",MetaLoaded:"loadedmetadata",Loaded:"loadeddata",Progress:"progress",FullScreen:"fullscreen",Play:"play",Playing:"playing",Pause:"pause",Ended:"ended",Seeking:"seeking",Seeked:"seeked",Resize:"resize",VolumeChange:"volumechange",WebRTCStatUpdate:"webrtcstatupdate"},{}),d={}},function(e,t,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function n(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 r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.Player=t.dom=t.util=t.browser=t.MSG=void 0,i(6);var s=i(1),a=n(s),l=i(2),c=n(l),u=i(3),p=n(u),h=i(4),d=n(h),f=i(23),y=o(f),v=i(26),A=o(v),m=i(27),g=o(m),w=i(35),b=o(w),M=i(36),S=o(M),I=i(37),E=o(I),_=i(38),T=o(_),D=i(39),L=o(D);window.console||(window.console={log:function(){},error:function(){},debug:function(){},info:function(){}});var C=t.MSG=d.MSG,O=t.browser=a,x=t.util=p,P=t.dom=c;t.Player=function(){function e(t){r(this,e),this.options=t,this.ready=!1,this.hasPlay=!1;var i=t.owner;return i?(this.guid=x.guid(),this.listener=this.options.listener,d.sub("*","*",x.bind(this,this.handleMsg),this),i=P.get(i),this.mtaReport=new L["default"](this,this.options),void this.render(i)):console.error("Player need a container")}return e.prototype.render=function(e){var t="vcp-player";if(O.TOUCH_ENABLED&&(t+=" touchable"),this.el=P.createEl("div",{class:t}),e.appendChild(this.el),this.errortips=new T["default"](this),this.errortips.render(this.el),this.loading=new E["default"](this),this.loading.render(this.el),this.options.width=this.options.width||e.offsetWidth,this.options.height=this.options.height||e.offsetHeight,this.size(this.options.width,this.options.height),!this.verifyOptions())return this.listener({type:"error",code:5}),x.console.error("create failed");if(!this.options.flash&&O.HASVIDEO){var i=new y["default"](this);i.render(this.el),this.video=i}else{var o=new A["default"](this);o.render(this.el),this.video=o}if(!this.video)return x.console.error("create video failed");this.poster=new S["default"](this),this.poster.render(this.el),(O.IS_SAFARI&&parseInt(O.SAFARI_VERSION)>10||O.IOS_VERSION>10)&&"system"==this.options.controls||(this.bigplay=new b["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 O.IE_VERSION&&x.compareVersion(O.IE_VERSION,"8.0")==-1?(this.errortips.show({code:5}),!1):!!this.options.src||(this.options.videoSource.hasUrl()?O.IS_IE||!O.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=P.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),O.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:P.removeClass(this.el,"vcp-playing"),("none"===this.options.preload||this.options.hlsConfig&&this.options.hlsConfig.autoStartLoad===!1)&&this.loading.hide();break;case C.Play:if(!this.playing())break;!this.hasPlay&&this.options.flash&&(this.mtaReport.reportFlash(),this.hasPlay=!0),P.addClass(this.el,"vcp-playing"),this.video.type()==x.VideoType.RTMP&&(this.__wait=!0,this.loading.show()),P.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:P.off(this.el,"mousemove",this.__handleEvent),P.removeClass(this.el,"vcp-playing");break;case C.Ended:P.off(this.el,"mousemove",this.__handleEvent),this.panel&&this.panel.show(),P.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(){P.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);O.IS_X5TBS?MtaH5.clickStat("x5_err",{format:o}):MtaH5.clickStat("error",{format:o})}catch(e){}}!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(22)(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{animation:fadeIn ease .8s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.vcp-controls-panel.hide{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("+i(9)+");background-image:url("+i(10)+")\\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("+i(11)+");background-image:url("+i(12)+")\\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("+i(13)+");background-image:url("+i(14)+")\\0;display:inline-block;width:3em;height:3em;position:absolute;left:0;top:0}.vcp-volume-muted .vcp-volume-icon{background-image:url("+i(15)+");background-image:url("+i(16)+")\\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("+i(17)+");background-image:url("+i(18)+")\\0}.vcp-fullscreen .vcp-fullscreen-toggle{background-image:url("+i(19)+");background-image:url("+i(20)+')\\0}.vcp-loading{box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;display:none;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;transform:translateZ(0);animation:load8 1.1s infinite linear}@keyframes load8{0%{transform:rotate(0deg)}to{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%;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('+i(21)+");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}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.fadeOut{animation:fadeOut ease .8s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{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<this.length;t++){var i=this[t];i[2]?e.push("@media "+i[2]+"{"+i[1]+"}"):e.push(i[1]);
  2 +}return e.join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},n=0;n<this.length;n++){var r=this[n][0];"number"==typeof r&&(o[r]=!0)}for(n=0;n<t.length;n++){var s=t[n];"number"==typeof s[0]&&o[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),e.push(s))}},e}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMzYgMzYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+DQogICAgPHBhdGggZD0iTTExLDEwIEwxOCwxMy43NCAxOCwyMi4yOCAxMSwyNiBNMTgsMTMuNzQgTDI2LDE4IDI2LDE4IDE4LDIyLjI4IiBmaWxsPSIjZmZmIj48L3BhdGg+DQo8L3N2Zz4="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAAAFoAAABaAHAjuH0AAAAHdElNRQfgBRQSOydLEdPXAAABmUlEQVRYw+2Wu0oDQRhGz2oIEhAtBEHRQpIIXtAH0M7Kd7DQQl/BV/BlFEEsBO9IUAmI8X5Bi6RQoqgYJYr5LMISE5LdmZhyT7mzO9/8Z3b/WQgICAjwxak9JLPbfGiqfwGNCBhkmj4cECqryJyQ52iMWeIccsI9eVfav4tyEZrSjwpKaUHj6lKLHFnXEvIZd3CI080k6yyRJGdryi8AIEyYdtoYZJ9NEnzYyDIJKM7VQw8DROnnmGseihJNY6oiNKWCyvnRq5Y1o6jaFXJ3xMuaaQUuTbQywSgXLLLGXeMU/ZUVoZcOOhljj23OXVnVVdkHFIkwwgBDxEhwRpq3OuaougeV5HWsefXX3ge/XmQiOezloV5FAN+cssEB52QaH/DBNanSJjcyQHySrXxNa39stgEF3tlimR2yvJs8YBfwRIJ1klzyWLro3SpMA0SaG5LssMuL2dTmAV/kyJS3a/MG5xcg4IpVVrjlmbz9uekdkOOILRKkikemuRgjhIY1p7ia7Q/KEn7/RY6t80r8elF9yw4ICAiw4xcxfsNvJiWE7gAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNi0wNS0yMFQxODo1OToxOCswODowMJKBy7cAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTYtMDUtMjBUMTg6NTk6MzkrMDg6MDAHjn/CAAAAPHRFWHRzdmc6YmFzZS11cmkAZmlsZTovLy9EOi9zcGFjZS92Y19wbGF5ZXIvc3JjL2ltZy9wbGF5X2J0bi5zdmedrkudAAAAAElFTkSuQmCC"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMzYgMzYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+DQogICAgPHBhdGggZD0iTTExLDEwIEwxNywxMCAxNywyNiAxMSwyNiBNMjAsMTAgTDI2LDEwIDI2LDI2IDIwLDI2IiBmaWxsPSIjZmZmIj48L3BhdGg+DQo8L3N2Zz4="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAAAFoAAABaAHAjuH0AAAAHdElNRQfgBRQTADNsu4KlAAAAfklEQVRYw+2WsQ2AMAwEPyiZimloWIqOhjHYg1VAMi1Ejo2l0P2VH/kvnQ0QQohLaj9Jl6ocnBInDwpGzI+qgh0LxMhjCGSSN5skaeY6g+m4qn+dTh4WdIACCiiggAIKfEGulntxcrXC4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AAAOpgAABdvkl/FRgAAAjVJREFUeNrsmDtoFUEUhr+rJkiCSEyRQhHRCCohBAlioRIECxtBQRBL8VHYWFmIhXaijY2gRCGIFlbpLASFYDAiPoiPYFBBRBQFkRA0PmI+m3MhhORe3ZDNXpgfplh2mZlv5/zn7NmSSi1rATWuBJAAEkACSAAJIAHMpxbluFYbcBDYCiwBvgODQDdwD5jINKuax+hSB51ew+p+tS7L3HlsvlW9b2UNqGuyzJ+HBzqBjVWeaQIai2ri31XiewK4BbwvmgdK6k71tjo+Q+j8UbvVlqzrlOagIysBHcAxYDfwDOgB1sV1c5zKa+B63BvNvNgsABqApcBIpESAlcBh4Ehsqge4DHwIsPVAK/AtwD7P+m1lBNgCHAJWAa+AG8By4ATQAlwFLgIv5txhGeJuh/p2Six/UkfUXnVzTrUlUx1Yq/bPYMibakOem89SB9piTKePk7xQ2I+5p8CjCsWoqegAb4AzYdyyRoEnYezeSJUNeQFkzUKdwL54433AXWATcDJCrBc4D/RPU4UXR0odm0+AsuqiKJW1AjgAHI1TuAZcAJ4Dq4FdQHuc/BBwB3iYdxr9l9GhXlLH1CH1nNqn/pqUtcYjHR9XG/NKo/8z6tXtFdJuWT/V02pzUfuBveqPKhBf1FNF7Qfqw7SVtAzYVtR+4DEwXMt/JV4CZ4GvVSCvFLmpXxheeDAl9sej4emKZwrR0FRSO7AH2BAFbiCK3rv5KmTpz1wCSAAJIAEkgASQAGpZfwcAT9esWbDao2gAAAAASUVORK5CYII="},function(e,t,i){function o(e,t){for(var i=0;i<e.length;i++){var o=e[i],n=d[o.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](o.parts[r]);for(;r<o.parts.length;r++)n.parts.push(c(o.parts[r],t))}else{for(var s=[],r=0;r<o.parts.length;r++)s.push(c(o.parts[r],t));d[o.id]={id:o.id,refs:1,parts:s}}}}function n(e){for(var t=[],i={},o=0;o<e.length;o++){var n=e[o],r=n[0],s=n[1],a=n[2],l=n[3],c={css:s,media:a,sourceMap:l};i[r]?i[r].parts.push(c):t.push(i[r]={id:r,parts:[c]})}return t}function r(e,t){var i=v(),o=g[g.length-1];if("top"===e.insertAt)o?o.nextSibling?i.insertBefore(t,o.nextSibling):i.appendChild(t):i.insertBefore(t,i.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");i.appendChild(t)}}function s(e){e.parentNode.removeChild(e);var t=g.indexOf(e);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=m++;i=A||(A=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=w(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(self.navigator.userAgent.toLowerCase())}),v=f(function(){return document.head||document.getElementsByTagName("head")[0]}),A=null,m=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;s<i.length;s++){var a=i[s],l=d[a.id];l.refs--,r.push(l)}if(e){var c=n(e);o(c,t)}for(var s=0;s<r.length;s++){var l=r[s];if(0===l.refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete d[l.id]}}}};var w=function(){var e=[];return function(t,i){return e[t]=i,e.filter(Boolean).join("\n")}}()},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="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=i(24),u=n(c),p=i(2),h=o(p),d=i(3),f=o(d),y=i(4),v=i(25),A=o(v),m=i(1),g=o(m),w=(f.FullscreenApi,{"0.7.1":"libs/hls.js","0.7min":"libs/hls.min.js","0.8.1":"libs/hls0.8.js","0.8.9":"libs/hls.min.0.8.9.js","0.12.4":"libs/hls.min.0.12.4.js"}),b=function(e){function t(i){return r(this,t),s(this,e.call(this,i,"H5Video"))}return a(t,e),t.prototype.render=function(t){var i,o=this.player.options,n="system"==o.controls?"":null,r=!!o.autoplay||null;return i=o.poster&&"object"==l(o.poster)?o.poster.src:"string"==typeof o.poster?o.poster:null,this.createEl("video",{controls:n,preload:o.preload||"auto",autoplay:r,"webkit-playsinline":"",playsinline:"","x-webkit-airplay":"allow","x5-video-player-type":"h5-page"==o.x5_type?"h5-page":null,"x5-video-player-fullscreen":!!o.x5_fullscreen||null,"x5-video-orientation":["landscape","portrait","landscape|portrait"][o.x5_orientation]||null,"x5-playsinline":1==!!o.x5_playsinline?o.x5_playsinline:null,"x5-mse-live-streaming":o.live?"":null}),this.el.style.width=this.player.width,this.el.style.height=this.player.height,e.prototype.render.call(this,t)},t.prototype.__hlsLoaded=function(e){if(!Hls.isSupported())return this.notify({type:"error",code:5,timeStamp:+new Date});this.flv&&(this.flv.unload(),this.flv.detachMediaElement()),this.hls&&(this.hls.stopLoad(),this.hls.detachMedia(),this.hls.destroy()),this.webrtc&&this.webrtc.stopPlay();var t=new Hls(this.options.hlsConfig);t.loadSource(e),t.attachMedia(this.el),t.on(Hls.Events.MANIFEST_PARSED,function(e,t){}),t.on(Hls.Events.MEDIA_DETACHED,function(){}),t.on(Hls.Events.ERROR,f.bind(this,this.__hlsOnError)),this.hls=t},t.prototype.__hlsOnManifestParsed=function(e,t){this.metaDataLoaded=!0},t.prototype.__hlsOnError=function(e,t){var i=t.type,o=t.details,n=t.fatal,r=this.hls;if(n)switch(i){case Hls.ErrorTypes.NETWORK_ERROR:o.indexOf("TimeOut")>0?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.__webrtcLoaded=function(e){this.hls&&(this.hls.stopLoad(),this.hls.detachMedia()),this.flv&&(this.flv.detachMediaElement(),this.flv.destroy());var t=this,i=this.player.options.webrtcConfig,o=new TXLivePlayer;o.setPlayerView(this.el),i&&i.streamType?"video"===i.streamType?o.setConfig({receiveVideo:!0,receiveAudio:!1}):"audio"===i.streamType?o.setConfig({receiveVideo:!1,receiveAudio:!0}):o.setConfig({receiveVideo:!0,receiveAudio:!0}):o.setConfig({receiveVideo:!0,receiveAudio:!0}),o.startPlay(e),o.setPlayListener({onPlayEvent:function(e,i){if(1006===e){var o={type:"webrtcstop",timeStamp:+new Date};return t.notify(o),!1}if(1009===e){var o={type:"webrtcwaitstart",timeStamp:+new Date};return t.notify(o),!1}if(1010===e){var o={type:"webrtcwaitend",timeStamp:+new Date};return t.notify(o),!1}var o={type:"error"};return e===-2001&&(o.code=2001),e===-2002&&(o.code=2002),e===-2004&&(o.code=2003),e===-2005?(t.__convertProtocol(t.options.src,t.options.m3u8?f.VideoType.M3U8:""),!1):void(o.code&&(i&&(o.reason=i.message),o.timeStamp=+new Date,t.notify(o)))},onPlayStats:function(e){t.notify({type:y.MSG.WebRTCStatUpdate,detail:e,timeStamp:+new Date})}}),this.webrtc=o},t.prototype.__flvLoaded=function(e){if(!flvjs.isSupported())return this.notify({type:"error",code:5,timeStamp:+new Date});this.hls&&(this.hls.stopLoad(),this.hls.detachMedia()),this.flv&&(this.flv.detachMediaElement(),this.flv.destroy()),this.webrtc&&this.webrtc.stopPlay();var t=flvjs.createPlayer(Object.assign({type:"flv",isLive:this.player.options.live,url:e},this.options.flvConfig));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=A.PlayStates.IDLE,this.seekState=A.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(),this.flv&&this.flv.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]||e.reason;break;case y.MSG.Ended:this.pause(),this.playState=A.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=A.PlayStates.PAUSED;break;case y.MSG.Seeking:case y.MSG.Seeked:this.seekState=e.type.toUpperCase();break;case y.MSG.WebRTCStatUpdate:t.detail=e.detail}"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.hlsConfig&&this.options.hlsConfig.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){var i=this,o=e.indexOf("webrtc://")>-1||e.indexOf(".sdp")>-1;this.pub({type:y.MSG.Load,src:this,ts:+new Date,detail:{src:e,type:t}}),o?g.IS_ENABLED_WEBRTC.then(function(o){o?"undefined"==typeof window.TXLivePlayer?h.loadScript(f.unifyProtocol("https://cloudcache.tencent-cloud.com/open/qcloud/live/webrtc/js/TXLivePlayer-1.1.0.min.js"),function(){i.__webrtcLoaded.call(i,e)}):i.__webrtcLoaded(e):i.__convertProtocol(e,t)})["catch"](function(o){i.__convertProtocol(e,t)}):this.__load(e,t)},t.prototype.__convertProtocol=function(e,t){g.IS_ENABLED_MSE?g.IS_MOBILE?(e.indexOf(".sdp")>-1?e=e.replace(".sdp",".m3u8"):(e=e.replace("webrtc://","https://").replace("?",".m3u8?"),e.indexOf("?")===-1&&e.indexOf(".m3u8")===-1&&(e+=".m3u8")),this.__load(e,t)):(e.indexOf(".sdp")>-1?e=e.replace(".sdp",".flv"):(e=e.replace("webrtc://","https://").replace("?",".flv?"),e.indexOf("?")===-1&&e.indexOf(".flv")===-1&&(e+=".flv")),this.__load(e,t)):this.notify({type:"error",code:2e3,timeStamp:+new Date})},t.prototype.__load=function(e,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.hls&&(this.hls.stopLoad(),this.hls.detachMedia()),this.flv&&(this.flv.unload(),this.flv.detachMediaElement()),this.__type=t,this.el.src=e;else{var n=this,r=w[this.options.hls]||w["0.7.1"];i?(this.__type=f.VideoType.M3U8,"undefined"==typeof window.Hls?h.loadScript(f.unifyProtocol(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.unifyProtocol(f.CDNPath+"libs/flv.min.1.5.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"]=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,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(){},
  3 +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(e){}}},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(24),u=n(c),p=i(4),h=i(2),d=o(h),f=i(3),y=o(f),v=i(25),A=o(v),m=i(1),g=o(m),w=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=y.unifyProtocol(t.flashUrl||"//cloudcache.tencent-cloud.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<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="" id="'+n+'" width="100%" height="100%">\n <param name="movie" value="'+i+'" />\n <param name="quality" value="autohigh" />\n <param name="swliveconnect" value="true" />\n <param name="allowScriptAccess" value="always" />\n <param name="bgcolor" value="#000" />\n <param name="allowFullScreen" value="true" />\n <param name="wmode" value="'+o+'" />\n <param name="FlashVars" value="cbName='+r+'" />\n\n <embed src="'+i+'" width="100%" height="100%" name="'+n+'"\n quality="autohigh"\n bgcolor="#000"\n align="middle" allowFullScreen="true"\n allowScriptAccess="always"\n type="application/x-shockwave-flash"\n swliveconnect="true"\n wmode="'+o+'"\n FlashVars="cbName='+r+'"\n pluginspage="http://www.macromedia.com/go/getflashplayer" >\n </embed>\n </object>\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=A.PlayStates.IDLE,this.seekState=A.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(e){return void this.endPolling()}if(this.__m3u8){var t=this.currentTime()+e.bufferLength;this.__buffered!==t&&(this.__buffered=t,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{try{this.el.setAutoPlay(!!this.options.autoplay)}catch(e){console.warn("Flash 调用失败,请检查Flash是否启用成功")}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==A.PlayStates.PLAYING?(this.__playing=!0,this.__stopped=!1,i.type=p.MSG.Play):t.playState==A.PlayStates.PAUSED?(this.__playing=!1,this.__stopped=!1,i.type=p.MSG.Pause):t.playState==A.PlayStates.STOP?(this.__playing=!1,this.__stopped=!0,i.type=p.MSG.Ended,this.__prevPlayState=null,this.options.live&&(this.metaDataLoaded=!1)):t.playState==A.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==A.SeekStates.SEEKING)i.type=p.MSG.Seeking;else{if(t.seekState!=A.SeekStates.SEEKED)return;this.__m3u8||this.options.live||t.playState!=A.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==A.PlayStates.PAUSED||this.__prevPlayState==A.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==A.PlayStates.STOP?(i.type="error",t={code:13,reason:t.code}):(i.type="error",t={code:1002,reason:t.code}):this.playState=A.PlayStates.IDLE),"NetStream.Play.Stop"!=t.code&&"NetConnection.Connect.Success"!=t.code&&"NetConnection.Connect.Failed"!=t.code||(this.playState=A.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(t){y.console.error(e+" "+i.type,t)}},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==A.PlayStates.PAUSED||this.playState==A.PlayStates.PLAYING||e?this.el.playerResume():this.playState!=A.PlayStates.PLAYING&&this.el.playerPlay()},t.prototype.togglePlay=function(){if(this.metaDataLoaded)if(this.playState==A.PlayStates.PAUSED)this.el.playerResume();else if(this.playState==A.PlayStates.PLAYING)this.el.playerPause();else if(this.playState==A.PlayStates.STOP)this.currentTime(0),this.el.playerResume();else try{this.el.playerPlay()}catch(e){console.warn("Flash 调用失败,请检查Flash是否启用成功")}else 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===A.PlayStates.PLAYING},t.prototype.type=function(){return this.__type},t.prototype.state=function(){return this.playState},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){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(24),c=n(l),u=i(28),p=n(u),h=i(29),d=n(h),f=i(30),y=i(31),v=n(y),A=i(32),m=n(A),g=i(33),w=n(g),b=i(34),M=n(b),S=i(4),I=i(2),E=o(I),_=i(3),T=o(_),D=i(1),L=o(D),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(E.createEl("div",{class:"vcp-panel-bg"})),this.playToggle=new p["default"](this.player),this.playToggle.render(this.el),this.timelabel=new m["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)),L.IS_MOBILE||(this.volume=new w["default"](this.player),this.volume.render(this.el)),this.options.videoSource&&this.options.videoSource.definitions.length>1&&!L.IS_MOBILE&&(this.claritySwitcher=new M["default"](this.player),this.claritySwitcher.render(this.el)),e.prototype.render.call(this,t)},t.prototype.setup=function(){var e=T.bind(this,this.handleMsg);this.sub(f.MSG.Changing,this.volume,e),this.sub(f.MSG.Changed,this.timeline.progress,e),this.sub(S.MSG.TimeUpdate,this.player.video,e),this.sub(S.MSG.Progress,this.player.video,e),this.sub(S.MSG.MetaLoaded,this.player.video,e),this.sub(S.MSG.Pause,this.player.video,e),this.sub(S.MSG.Play,this.player.video,e),this.sub(S.MSG.Ended,this.player.video,e)},t.prototype.handleMsg=function(e){switch(e.type){case S.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 S.MSG.TimeUpdate:this.timeline.scrubbing||this.timeline.percent(this.player.percent());break;case S.MSG.Pause:this.show();break;case S.MSG.Play:this.hide();break;case S.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 S.MSG.Ended:this.show()}},t.prototype.toggle=function(){E.hasClass(this.el,"show")?this.hide():this.show()},t.prototype.show=function(){E.hasClass(this.el,"hide")&&(E.removeClass(this.el,"hide"),E.addClass(this.el,"show"))},t.prototype.hide=function(){E.removeClass(this.el,"show"),E.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(24),c=n(l),u=i(2),p=(o(u),i(4)),h=(o(p),i(3)),d=(o(h),i(25)),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(24),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(24),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(30),c=n(l),u=i(24),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.__buffered<e&&this.buffered(this.player.buffered()),this.progress.percent(e))},t}(p["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(30),c=(n(l),i(24)),u=n(c),p=i(2),h=(o(p),i(3)),d=o(h),f=function(e){function t(i){return r(this,t),s(this,e.call(this,i,"Timelabel"))}return a(t,e),t.prototype.render=function(t){return this.createEl("span",{class:"vcp-timelabel"}),e.prototype.render.call(this,t)},t.prototype.setup=function(){this.sub("timelabel","timeline",d.bind(this,this.handleMsg))},t.prototype.handleMsg=function(e){this.el.innerHTML=e.label},t}(u["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(30),c=n(l),u=i(24),p=n(u),h=i(2),d=o(h),f=i(3),y=o(f),v=i(4),A=function(e){function t(i){return r(this,t),s(this,e.call(this,i,"Volume"))}return a(t,e),t.prototype.render=function(t){return this.createEl("div",{class:"vcp-volume"}),this.bg=d.createEl("div",{class:"vcp-volume-bg"}),this.el.appendChild(this.bg),this.volume=new c["default"](this.player,!0),this.volume.render(this.el),this.track=this.volume.track,this.icon=d.createEl("span",{class:"vcp-volume-icon"}),this.el.appendChild(this.icon),e.prototype.render.call(this,t)},t.prototype.setup=function(){this.sub(l.MSG.Changing,this.volume,y.bind(this,this.handleMsg)),this.sub(l.MSG.Changed,this.volume,y.bind(this,this.handleMsg)),this.sub(v.MSG.VolumeChange,this.player.video,y.bind(this,this.handleMsg)),this.on(this.icon,"click",this.toggleMute)},t.prototype.handleMsg=function(e){switch(e.type){case l.MSG.Changing:this.syncTrack(this.percent());break;case l.MSG.Changed:this.percent(this.percent());break;case v.MSG.VolumeChange:var t=this.player.volume();this.syncTrack(t),0==t?this.syncMute(!0):t>0&&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"]=A},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(24),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;o<i.definitions.length;o++){var n=p.createEl("a",{class:"vcp-vertical-switcher-item"});n.innerHTML=f[i.definitions[o]],i.definitions[o]==i.curDef&&(p.addClass(n,"current"),this.currentItem=n),n.setAttribute("data-def",i.definitions[o]),this.items.push(n),this.container.appendChild(n)}return this.el.appendChild(this.container),e.prototype.render.call(this,t)},t.prototype.setup=function(){this.on("click",this.onClick),this.on("mouseenter",this.onMouseEnter),this.on("mouseleave",this.onMouseLeave)},t.prototype.onClick=function(e){var t=e.target.getAttribute("data-def");t?(this.current.innerHTML=f[t],p.removeClass(this.currentItem,"current"),p.addClass(e.target,"current"),this.currentItem=e.target,this.player._switchClarity(t)):!this.show},t.prototype.onMouseLeave=function(){this.container.style.display="none",this.show=!1},t.prototype.onMouseEnter=function(){this.container.style.display="block",this.show=!0},t.prototype.setClarity=function(e){e&&(this.current.innerHTML=f[e],p.removeClass(document.querySelector(".vcp-vertical-switcher-item.current"),"current"),p.addClass(document.querySelector('.vcp-vertical-switcher-item[data-def="'+e+'"]'),"current"),this.currentItem=document.querySelector('.vcp-vertical-switcher-item[data-def="'+e+'"]'),this.player._switchClarity(e))},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(24),c=n(l),u=i(1),p=o(u),h=function(e){function t(i){return r(this,t),s(this,e.call(this,i,"BigPlay"))}return a(t,e),t.prototype.render=function(t){return this.createEl("div",{class:"vcp-bigplay"}),e.prototype.render.call(this,t)},t.prototype.setup=function(){this.on("click",this.onClick)},t.prototype.onClick=function(){var e=this.player.video;return p.IS_MOBILE&&!e.paused()?this.player.panel&&this.player.panel.toggle():void this.player.togglePlay()},t.prototype.handleMsg=function(e){console.log("@"+this.name,e)},t}(c["default"]);t["default"]=h},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="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=i(24),u=n(c),p=i(2),h=o(p),d=i(3),f=o(d),y=i(1),v=o(y),A=i(4),m=function(e){function t(i){r(this,t);var o=s(this,e.call(this,i,"Poster"));return o.options.poster&&"object"==l(o.options.poster)?o.poster=o.options.poster:"string"==typeof o.options.poster?o.poster={src:o.options.poster}:o.poster={},o}return a(t,e),t.prototype.render=function(t){this.createEl("div",{class:"vcp-poster"}),this.hide();var i=this.poster;if(i){this.pic=h.createEl("img",{class:"vcp-poster-pic"});var o=this.poster.style;switch(o){case"stretch":h.addClass(this.pic,"stretch");break;case"cover":h.addClass(this.pic,"cover");break;default:h.addClass(this.pic,"default")}this.el.appendChild(this.pic)}return e.prototype.render.call(this,t)},t.prototype.setup=function(){this.on("click",this.onClick),this.sub(A.MSG.Load,this.player.video,f.bind(this,this.handleMsg)),this.sub(A.MSG.MetaLoaded,this.player.video,f.bind(this,this.handleMsg)),this.sub(A.MSG.Play,this.player.video,f.bind(this,this.handleMsg)),this.sub(A.MSG.Pause,this.player.video,f.bind(this,this.handleMsg)),this.sub(A.MSG.Ended,this.player.video,f.bind(this,this.handleMsg)),this.sub(A.MSG.Error,this.player.video,f.bind(this,this.handleMsg))},t.prototype.onClick=function(){this.pub({type:"click",src:this}),(v.IS_SAFARI&&parseInt(v.SAFARI_VERSION)>10||v.IOS_VERSION>10)&&"system"==this.player.options.controls&&this.player.togglePlay()},t.prototype.handleMsg=function(e){switch(e.type){case A.MSG.Load:this.__loaded=!1,this.setPoster(this.poster.start);break;case A.MSG.MetaLoaded:if(this.__loaded=!0,!this.player.playing())break;this.hide();case A.MSG.Play:if(!this.__loaded)break;this.hide();break;case A.MSG.Pause:if(!this.__loaded)break;this.options.pausePosterEnabled===!0&&this.setPoster(this.poster.pause);break;case A.MSG.Ended:if(!this.__loaded)break;break;case A.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.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";
  4 +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"]=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(24),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(24),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引用的实例无法支持全屏",WebrtcEnvError:"当前环境不支持 WebRTC 格式文件播放",WebrtcApiError:"调用 WebRTC 接口失败",WebrtcPullStreamError:"调用拉流接口失败",WebrtcConnectError:"连接服务器失败,并且连接重试次数已超过设定值",WebrtcDecodeError:"WebRTC 解码失败"},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],WebrtcEnvError:[2e3],WebrtcApiError:[2001],WebrtcPullStreamError:[2002],WebrtcConnectError:[2003],WebrtcDecodeError:[2004]},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<y[n].length;a++){var l=y[n][a];o.customTips[l]=o.customTips[l]||o.customTips[n]}return o}return a(t,e),t.prototype.render=function(t){return this.createEl("div",{class:"vcp-error-tips"}),e.prototype.render.call(this,t)},t.prototype.setup=function(){},t.prototype.handleMsg=function(e){},t.prototype.show=function(e){this.el.style.display="block";var t=void 0;if("string"==typeof e)t=e;else{var i=this.customTips[e.code]||e.reason;t="["+e.code+"]"+i}this.el.innerHTML=d.escapeHTML(t)},t.prototype.hide=function(){this.el.style.display="none"},t.prototype.clear=function(){this.el.innerHTML="",this.hide()},t}(c["default"]);t["default"]=v},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")}t.__esModule=!0;var r=i(1),s=o(r),a=i(2),l=o(a),c=i(3),u=function(){function e(t,i){n(this,e),this.player=t,this.options=i,this.load()}return e.prototype.load=function(){l.loadScript((0,c.unifyProtocol)("//pingjs.qq.com/h5/stats.js?v2.0.4"),null,{name:"MTAH5",sid:"500376528",cid:"500383222"},!0)},e.prototype.report=function(){window.MtaH5&&(0==this.player.duration()||this.player.duration()==1/0?MtaH5.clickStat("live",{live:"true"}):MtaH5.clickStat("vod",{vod:"true"}))},e.prototype.reportFlash=function(){if(window.MtaH5){var e=this.options.videoSource,t=(0,c.getFormat)(e),i={browser:s.BROWSER_TYPE,mse:!!s.IS_ENABLED_MSE,format:t};MtaH5.clickStat("flash",i)}},e}();t["default"]=u}])});
0 5 \ No newline at end of file
... ...
src/App.vue
... ... @@ -9,8 +9,14 @@ export default {
9 9 name: 'App'
10 10 }
11 11 </script>
12   -<style lang="scss" scoped>
  12 +<style lang="scss">
13 13 .flex{
14 14 display: flex;
15 15 }
  16 +.page-box{
  17 + display: flex;
  18 + align-items: center;
  19 + justify-content: center;
  20 + padding: 10px;
  21 +}
16 22 </style>
... ...
src/api/QuestionBank.js
1 1 import request from '@/utils/request'
2 2  
3 3 export function getQuestionList(data) {
4   - return request({
5   - url: `/QuestionBank/SelectQuestionBankList`,
6   - // url: `/QuestionBank/SelectQuestionBankList?pageIndex=${params.pageIndex}&pageSize=${params.pageSize}&sort=${params.sort}&sortOrder=${params.sortOrder}`,
7   - method: 'post',
8   - data
9   - })
  4 + return request({
  5 + url: `/QuestionBank/SelectQuestionBankList`,
  6 + // url: `/QuestionBank/SelectQuestionBankList?pageIndex=${params.pageIndex}&pageSize=${params.pageSize}&sort=${params.sort}&sortOrder=${params.sortOrder}`,
  7 + method: 'post',
  8 + data
  9 + })
10 10 }
11 11 //维护题目,包含添加和修改
12 12 export function EditQuestion(params) {
13   - return request({
14   - url: `/QuestionBank/EditQuestionBankEvent`,
15   - method: 'post',
16   - data: params
17   - })
  13 + return request({
  14 + url: `/QuestionBank/EditQuestionBankEvent`,
  15 + method: 'post',
  16 + data: params
  17 + })
18 18 }
19 19  
20 20 export function getQuestionClassList(params) {
21   - return request({
22   - url: `/QuestionClass/List?pageIndex=1&pageSize=1000`,
23   - method: 'get',
24   - })
  21 + return request({
  22 + url: `/QuestionClass/List?pageIndex=1&pageSize=100000`,
  23 + method: 'get',
  24 + })
25 25 }
26 26  
27 27 export function CreateQuestionClass(params) {
28   - return request({
29   - url: `/QuestionClass/Create`,
30   - method: 'post',
31   - data:params
32   - })
  28 + return request({
  29 + url: `/QuestionClass/Create`,
  30 + method: 'post',
  31 + data: params
  32 + })
33 33 }
34 34  
35 35 //删除题目,标记删除
36 36 export function DelQuestionBankEvent(id) {
37   - return request({
38   - url: `/QuestionBank/DelQuestionBankEvent/${id}`,
39   - method: 'post',
40   - })
  37 + return request({
  38 + url: `/QuestionBank/DelQuestionBankEvent/${id}`,
  39 + method: 'post',
  40 + })
41 41 }
42 42 //读取题目信息
43 43 export function GetQuestionBankById(id) {
44   - return request({
45   - url: `/QuestionBank/Get/${id}`,
46   - method: 'get',
47   - })
  44 + return request({
  45 + url: `/QuestionBank/Get/${id}`,
  46 + method: 'get',
  47 + })
48 48 }
49 49  
50 50 // POST /api/QuestionBank/AddQuestionBankToTestPaper 添加题目到试卷
51 51 export function AddQuestionBankToTestPaper(data) {
52   - return request({
53   - url: `/QuestionBank/AddQuestionBankToTestPaper`,
54   - method: 'post',
55   - data,
56   - })
  52 + return request({
  53 + url: `/QuestionBank/AddQuestionBankToTestPaper`,
  54 + method: 'post',
  55 + data,
  56 + })
57 57 }
  58 +//随机组卷
  59 +export function PostRandomGetQuestion(data) {
  60 + return request({
  61 + url: `/QuestionBank/RandomGetQuestion`,
  62 + method: 'post',
  63 + data,
  64 + })
  65 +}
58 66 \ No newline at end of file
... ...
src/api/user.js
1 1 import request from '@/utils/request'
2 2  
3 3 export function login(data) {
4   - return request({
5   - url: `/Account/SystemLogin?username=${data.username}&password=${data.password}`,
6   - method: 'post',
7   - data
8   - })
  4 + return request({
  5 + url: `/Account/SystemLogin?username=${data.username}&password=${data.password}`,
  6 + method: 'post',
  7 + data
  8 + })
9 9 }
10 10 export function getInfo(token) {
11   - return request({
12   - url: `/Users/userInfo`,
13   - method: 'get',
14   - })
  11 + return request({
  12 + url: `/Users/userInfo`,
  13 + method: 'get',
  14 + })
15 15 }
16 16  
17 17  
18 18 export function ImportUserByExcel(token) {
19   - return request({
20   - url: `/Account/ImportUser`,
21   - method: 'post'
22   - })
  19 + return request({
  20 + url: `/Account/ImportUser`,
  21 + method: 'post'
  22 + })
23 23 }
24 24  
25 25 export function logout() {
26   - return request({
27   - url: '/vue-admin-template/user/logout',
28   - method: 'post'
29   - })
  26 + return request({
  27 + url: '/vue-admin-template/user/logout',
  28 + method: 'post'
  29 + })
30 30 }
31 31  
32 32 export function GetUserList(data) {
33   - return request({
34   - url: `/Users/GetUserList`,
35   - method: 'post',
36   - data
37   - })
  33 + return request({
  34 + url: `/Users/GetUserList`,
  35 + method: 'post',
  36 + data
  37 + })
38 38 }
39 39 export function UsersCreate(data) {
40   - return request({
41   - url: `/Users/Create`,
42   - method: 'post',
43   - data
44   - })
  40 + return request({
  41 + url: `/Users/Create`,
  42 + method: 'post',
  43 + data
  44 + })
45 45 }
46 46  
47 47 export function UsersUpdate(data) {
48   - return request({
49   - url: `/Users/Update`,
50   - method: 'post',
51   - data
52   - })
  48 + return request({
  49 + url: `/Users/Update`,
  50 + method: 'post',
  51 + data
  52 + })
53 53 }
54 54  
55 55 export function UsersDelete(data) {
56   - return request({
57   - url: `/Users/Delete`,
58   - method: 'post',
59   - params: data
60   - })
  56 + return request({
  57 + url: `/Users/Delete`,
  58 + method: 'post',
  59 + params: data
  60 + })
61 61 }
62 62  
63 63 export function UpdateCurrentPassword(data) {
64   - return request({
65   - url: `/Account/UpdateCurrentPassword?Password=`+data.Password,
66   - method: 'post',
67   - // params: data
68   - })
  64 + return request({
  65 + url: `/Account/UpdateCurrentPassword?Password=` + data.Password,
  66 + method: 'post',
  67 + // params: data
  68 + })
69 69 }
70 70  
71 71  
72 72 export function AccountRegister(data) {
73   - return request({
74   - url: `/Account/Register`,
75   - method: 'post',
76   - data
77   - // params: data
78   - })
  73 + return request({
  74 + url: `/Account/Register`,
  75 + method: 'post',
  76 + data
  77 + // params: data
  78 + })
79 79 }
80 80  
81 81 //POST /api/Users/GetUserListByAdmin
82 82  
83 83 export function GetUserListByAdmin(data) {
84   - return request({
85   - url: `/Users/GetUserListByAdmin`,
86   - method: 'post',
87   - data
88   - })
  84 + return request({
  85 + url: `/Users/GetUserListByAdmin`,
  86 + method: 'post',
  87 + data
  88 + })
89 89 }
90 90 //修改管理员密码
91 91 export function UpdateCurrentPasswordById(data) {
92   - return request({
93   - url: `/Account/UpdateCurrentPasswordById?UserId=`+data.UserId+'&Password='+data.Password,
94   - method: 'post',
95   - data
96   - })
97   -}
98   -
  92 + return request({
  93 + url: `/Account/UpdateCurrentPasswordById?UserId=` + data.UserId + '&Password=' + data.Password,
  94 + method: 'post',
  95 + data
  96 + })
  97 +}
  98 +
99 99 export function AddInvitationAnswerMultiple(data) {
100   - return request({
101   - url: `/InvitationAnswer/AddInvitationAnswerMultiple`,
102   - method: 'post',
103   - data
104   - })
  100 + return request({
  101 + url: `/InvitationAnswer/AddInvitationAnswerMultiple`,
  102 + method: 'post',
  103 + data
  104 + })
  105 +}
  106 +
  107 +export function UserInfoResumeIdentification(data) {
  108 + return request({
  109 + url: '/UserInfo/ResumeIdentification',
  110 + method: 'post',
  111 + data
  112 + });
  113 +}
  114 +
  115 +//批量入库
  116 +export function UserInfo_BatchToUser(ids) {
  117 + return request({
  118 + url: '/UserInfo/BatchToUser?ids=' + ids,
  119 + method: 'post',
  120 + });
  121 +}
  122 +//删除用户
  123 +export function UserInfo_Delete(ids) {
  124 + return request({
  125 + url: '/UserInfo/Delete?ids=' + ids,
  126 + method: 'post',
  127 + });
  128 +}
  129 +//更新用户
  130 +export function UserInfo_Update(data) {
  131 + return request({
  132 + url: '/UserInfo/Update',
  133 + method: 'post',
  134 + data
  135 + });
  136 +}
  137 +//用户列表
  138 +export function UserInfo_List(params) {
  139 + return request({
  140 + url: `/UserInfo/List`,
  141 + method: 'get',
  142 + params
  143 + })
105 144 }
106 145 \ No newline at end of file
... ...
src/common/mixins.js 0 → 100644
  1 +import {
  2 + getToken
  3 +} from '@/utils/auth'
  4 +export default {
  5 + data() {
  6 + return {
  7 + Authorization: ''
  8 + };
  9 + },
  10 + created() {
  11 + this.Authorization = getToken();
  12 + },
  13 + methods: {
  14 +
  15 + }
  16 +}
0 17 \ No newline at end of file
... ...
src/main.js
... ... @@ -34,6 +34,9 @@ if (process.env.NODE_ENV === &#39;production&#39;) {
34 34 mockXHR()
35 35 }
36 36  
  37 +import mixins from '@/common/mixins'
  38 +Vue.mixin(mixins);
  39 +
37 40 // set ElementUI lang to EN
38 41 //Vue.use(ElementUI, { locale })
39 42 // 如果想要中文版 element-ui,按如下方式声明
... ...
src/utils/routerList.js
... ... @@ -38,6 +38,16 @@ export function getRoutes() {
38 38 title: '首页',
39 39 icon: 'dashboard'
40 40 }
  41 + }, {
  42 + path: 'live',
  43 + name: '直播观看',
  44 + component: () =>
  45 + import ('@/views/live/index'),
  46 + meta: {
  47 + title: '直播',
  48 + icon: 'video'
  49 + },
  50 + hidden: true
41 51 }]
42 52 },
43 53  
... ... @@ -279,22 +289,6 @@ export function getRoutes() {
279 289 },
280 290  
281 291 {
282   - path: '/',
283   - component: Layout,
284   - redirect: '/dashboard',
285   - children: [{
286   - path: 'dashboard',
287   - name: '首页',
288   - component: () =>
289   - import ('@/views/dashboard/index'),
290   - meta: {
291   - title: '首页',
292   - icon: 'dashboard'
293   - }
294   - }]
295   - },
296   -
297   - {
298 292 path: '/example',
299 293 component: Layout,
300 294 redirect: '/example/table',
... ...
src/views/QuestionBank/index.vue
... ... @@ -165,6 +165,7 @@
165 165 <el-option label="单选题" :value="1"></el-option>
166 166 <el-option label="多选题" :value="2"></el-option>
167 167 <el-option label="主观题" :value="3"></el-option>
  168 + <el-option label="语音题" :value="4"></el-option>
168 169 </el-select>
169 170 </el-form-item>
170 171 <el-form-item label="选项" v-show="OptionVisible">
... ... @@ -402,7 +403,7 @@
402 403 },
403 404 //选择题目类型来判断是否显示部分表单
404 405 changeQuestionType(val) {
405   - if (val == 3) {
  406 + if (val == 3 || val == 4) {
406 407 this.OptionVisible = false;
407 408 }
408 409 if (val == 2) {
... ...
src/views/TestPaper/ManualTestPaper.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <div id="id_test_video" style="width:100%; height:auto;"></div>
3 4 <el-row :gutter="20">
4 5 <el-col :span="6" :style="{'height':contentHeight+'px'}">
5 6 <div class="grid-content bg-purple">
... ... @@ -84,7 +85,7 @@
84 85 </el-date-picker>
85 86 </el-form-item>
86 87 </el-form-item>
87   - <el-form-item label="总时长控制" :prop="AnswerTime">
  88 + <el-form-item label="总时长控制" prop="AnswerTime">
88 89 <el-input class="testpaper-input" type="number" placeholder="总时长控制(分钟)" v-model="TestPaper.AnswerTime">
89 90 </el-input>
90 91 </el-form-item>
... ... @@ -120,462 +121,504 @@
120 121  
121 122  
122 123  
123   - <el-dialog title="收货地址" :visible.sync="dialogTableVisible">
124   - <el-form label-width="100px" class="demo-dynamic">
125   - <el-form-item
126   - prop="email"
127   - label="邮箱"
128   - :rules="[
129   - { required: true, message: '请输入邮箱地址', trigger: 'blur' },
130   - { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
131   - ]"
132   - >
133   - <el-input v-model="dynamicValidateForm.email"></el-input>
134   - </el-form-item>
135   - <el-form-item
136   - v-for="(domain, index) in dynamicValidateForm.domains"
137   - :label="'域名' + index"
138   - :key="domain.key"
139   - :prop="'domains.' + index + '.value'"
140   - :rules="{
141   - required: true, message: '域名不能为空', trigger: 'blur'
142   - }"
143   - >
144   - <el-input v-model="domain.value"></el-input><el-button @click.prevent="removeDomain(domain)">删除</el-button>
145   - </el-form-item>
146   - <el-form-item>
147   - <el-button type="primary" @click="submitForm('dynamicValidateForm')">提交</el-button>
148   - <el-button @click="addDomain">新增域名</el-button>
149   - <el-button @click="resetForm('dynamicValidateForm')">重置</el-button>
150   - </el-form-item>
151   - </el-form>
  124 + <el-dialog title="随机抽题" :visible.sync="dialogTableVisible">
  125 + <ul class="random-list">
  126 + <li v-for="(item,index) in randomSubjectList" :key="index">
  127 + <span>试题分类:</span>
  128 + <el-select v-model="item.QuestionClassId" style="margin-left:10px;">
  129 + <el-option v-for="option in randomQuestionTypeList" :key="option.id" :label="option.ClassificationName" :value="option.id"></el-option>
  130 + </el-select>
  131 + <span style="margin-left:10px;">试题数量:</span>
  132 + <el-input-number v-model="item.Count" :min="1" :max="100" label="描述文字" style="margin-left:10px;"></el-input-number>
  133 + <i class="el-icon-remove-outline" @click="changeSubjectCount(-1,index)" style="margin-left:10px;color:#f56c6c;"></i>
  134 + <i class="el-icon-circle-plus" @click="changeSubjectCount(1)" style="margin-left:10px;color:#67C23A;"></i>
  135 + </li>
  136 + </ul>
  137 + <div slot="footer">
  138 + <el-button @click="randomCancel">取消</el-button>
  139 + <el-button type="primary" @click="randomSubmit">确定</el-button>
  140 + </div>
152 141 </el-dialog>
153 142  
154 143 </div>
155 144 </template>
156   -
  145 +<style lang="scss" scoped>
  146 +.random-list {
  147 + display: flex;
  148 + flex-direction: column;
  149 + li {
  150 + margin-bottom: 20px;
  151 + display: flex;
  152 + align-items: center;
  153 + [class^="el-icon"] {
  154 + font-size: 24px;
  155 + cursor: pointer;
  156 + }
  157 + }
  158 +}
  159 +</style>
157 160 <script>
158   - import draggable from "vuedraggable";
159   - import { getQuestionClassList, getQuestionList } from "@/api/QuestionBank";
160   - import { GetQuestionClassByType } from "@/api/QuestionClass";
161   - import { EditTestPaper, GetToplevel } from "@/api/TestPaper";
162   - import { formatTime } from '@/utils/util'
163   - export default {
164   - //注册draggable组件
165   - components: {
166   - draggable,
167   - },
168   - data() {
169   - return {
170   - dynamicValidateForm: {
171   - domains: [{
172   - value: ''
173   - }],
174   - email: ''
175   - },
176   - dialogTableVisible:false,
177   - loadingType:false,
178   - activeTab: "6",
179   - parameter: {
180   - pageIndex: 0,
181   - pageSize: 20,
182   - sort: "id",
183   - sortOrder: 1,
184   - keyWord: "",
185   - QuestionClassId: 6,
186   - status: 1,
  161 +import draggable from "vuedraggable";
  162 +import { PostRandomGetQuestion, getQuestionList } from "@/api/QuestionBank";
  163 +import { GetQuestionClassByType } from "@/api/QuestionClass";
  164 +import { EditTestPaper, GetToplevel } from "@/api/TestPaper";
  165 +import { formatTime } from "@/utils/util";
  166 +export default {
  167 + //注册draggable组件
  168 + components: {
  169 + draggable,
  170 + },
  171 + data() {
  172 + return {
  173 + randomSubjectList: [
  174 + {
  175 + QuestionClassId: "",
  176 + Count: "",
187 177 },
188   - contentHeight: 0,
189   - count: 0,
190   - edit: false,
191   - arr1: [],
192   - arr2: [],
193   - classarr: [],
194   - moveId: -1,
195   - TestPaper: {
196   - TestPaperTitle: "未命名试卷标题",
197   - TestPaperClassId: 0,
198   - TotalScore: 0,
199   - Describe: "",
200   - SingleNumber: 0,
201   - MultipleNumber: 0,
202   - SubjectiveNumber: 0,
203   - OriginalPrice: "0",
204   - PresentPrice: "0",
205   - MembershipPrice: "0",
206   - QuestionBankIds: [],
  178 + {
  179 + QuestionClassId: "",
  180 + Count: "",
207 181 },
208   - loading: false,
209   - rules: {
210   - OriginalPrice: [
211   - {
212   - required: true,
213   - message: "不能为空",
214   - },
215   - ],
216   - PresentPrice: [
217   - {
218   - required: true,
219   - message: "不能为空",
220   - },
221   - ],
222   - MembershipPrice: [
223   - {
224   - required: true,
225   - message: "不能为空",
226   - },
227   - ],
228   - },
229   - QuestionClass: [],
230   - treeData: [
  182 + ],
  183 + randomQuestionTypeList: [],
  184 + dynamicValidateForm: {
  185 + domains: [
231 186 {
232   - value: 0,
233   - label: "全部",
  187 + value: "",
234 188 },
235 189 ],
236   - timeout: 0,
237   - };
238   - },
239   - watch: {
240   - activeTab() {
241   - console.log("activeTab watch");
242   - this.search();
  190 + email: "",
243 191 },
244   - "parameter.keyWord": {
245   - handler() {
246   - clearTimeout(this.timeout);
247   - this.timeout = setTimeout(() => {
248   - this.search();
249   - }, 200);
250   - },
  192 + dialogTableVisible: false,
  193 + loadingType: false,
  194 + activeTab: "6",
  195 + parameter: {
  196 + pageIndex: 0,
  197 + pageSize: 20,
  198 + sort: "id",
  199 + sortOrder: 1,
  200 + keyWord: "",
  201 + QuestionClassId: 6,
  202 + status: 1,
251 203 },
252   - },
253   - computed: {
254   - noMore() {
255   - return this.arr1.length >= this.count;
  204 + contentHeight: 0,
  205 + count: 0,
  206 + edit: false,
  207 + arr1: [],
  208 + arr2: [],
  209 + classarr: [],
  210 + moveId: -1,
  211 + TestPaper: {
  212 + TestPaperTitle: "未命名试卷标题",
  213 + TestPaperClassId: 0,
  214 + TotalScore: 0,
  215 + Describe: "",
  216 + SingleNumber: 0,
  217 + MultipleNumber: 0,
  218 + SubjectiveNumber: 0,
  219 + OriginalPrice: "0",
  220 + PresentPrice: "0",
  221 + MembershipPrice: "0",
  222 + QuestionBankIds: [],
256 223 },
257   - disabled() {
258   - return this.loading || this.noMore;
  224 + loading: false,
  225 + rules: {
  226 + OriginalPrice: [
  227 + {
  228 + required: true,
  229 + message: "不能为空",
  230 + },
  231 + ],
  232 + PresentPrice: [
  233 + {
  234 + required: true,
  235 + message: "不能为空",
  236 + },
  237 + ],
  238 + MembershipPrice: [
  239 + {
  240 + required: true,
  241 + message: "不能为空",
  242 + },
  243 + ],
259 244 },
  245 + QuestionClass: [],
  246 + treeData: [
  247 + {
  248 + value: 0,
  249 + label: "全部",
  250 + },
  251 + ],
  252 + timeout: 0,
  253 + };
  254 + },
  255 + watch: {
  256 + activeTab() {
  257 + console.log("activeTab watch");
  258 + this.search();
260 259 },
261   - created() { },
262   - mounted() {
263   - //计算页面内容区域的高度
264   - this.contentHeight = window.innerHeight - 90;
265   - this.getQuestionClassListHeadler();
266   - //this.GetList();
267   - },
268   - methods: {
269   - randomSubject(){
270   - this.dialogTableVisible=true;
271   - },
272   - submitForm(formName) {
273   - this.$refs[formName].validate((valid) => {
274   - if (valid) {
275   - alert('submit!');
276   - } else {
277   - console.log('error submit!!');
278   - return false;
279   - }
280   - });
281   - },
282   - resetForm(formName) {
283   - this.$refs[formName].resetFields();
284   - },
285   - removeDomain(item) {
286   - var index = this.dynamicValidateForm.domains.indexOf(item)
287   - if (index !== -1) {
288   - this.dynamicValidateForm.domains.splice(index, 1)
289   - }
  260 + "parameter.keyWord": {
  261 + handler() {
  262 + clearTimeout(this.timeout);
  263 + this.timeout = setTimeout(() => {
  264 + this.search();
  265 + }, 200);
290 266 },
291   - addDomain() {
292   - this.dynamicValidateForm.domains.push({
293   - value: '',
294   - key: Date.now()
  267 + },
  268 + },
  269 + computed: {
  270 + noMore() {
  271 + return this.arr1.length >= this.count;
  272 + },
  273 + disabled() {
  274 + return this.loading || this.noMore;
  275 + },
  276 + },
  277 + created() {
  278 + GetQuestionClassByType({ ClassType: 2 }).then((res) => {
  279 + console.log("GetQuestionClassByType res", res);
  280 + this.randomQuestionTypeList = res.data.data;
  281 + });
  282 + },
  283 + mounted() {
  284 + //计算页面内容区域的高度
  285 + this.contentHeight = window.innerHeight - 90;
  286 + this.getQuestionClassListHeadler();
  287 + //this.GetList();
  288 + },
  289 + methods: {
  290 + randomCancel() {
  291 + this.dialogTableVisible = false;
  292 + },
  293 + randomSubmit() {
  294 + let list = this.randomSubjectList;
  295 + if (list.findIndex((t) => !t.QuestionClassId || !t.Count) > -1) {
  296 + this.$message.warning("参数不完整");
  297 + return;
  298 + }
  299 + PostRandomGetQuestion(list).then((res) => {
  300 + let list = res.data.data;
  301 + this.arr2 = list;
  302 + this.dialogTableVisible = false;
  303 + });
  304 + },
  305 + changeSubjectCount(type, index) {
  306 + if (type > 0) {
  307 + this.randomSubjectList.push({
  308 + QuestionClassId: "",
  309 + Count: "",
295 310 });
296   - },
297   - changetimestartend(val, aa) {
298   - this.TestPaper.EffectiveStartTime = formatTime(val[0])
299   - this.TestPaper.EffectiveEndTime = formatTime(val[1])
300   - },
301   - search() {
302   - this.parameter.pageIndex = 1;
303   - this.parameter.QuestionClassId = Number(this.activeTab);
304   - this.GetList();
305   - },
306   - SubmitTestPaper() {
307   - var d = this.TestPaper;
308   - if (this.arr2.length > 0) {
309   - EditTestPaper(this.TestPaper).then((res) => {
310   - if (res.data.code == 200) {
311   - this.$confirm("组卷成功!", "消息");
312   - } else {
313   - this.$confirm("组卷失败!", "消息");
314   - }
315   - });
  311 + } else {
  312 + this.randomSubjectList.splice(index, 1);
  313 + }
  314 + },
  315 + randomSubject() {
  316 + this.dialogTableVisible = true;
  317 + },
  318 + submitForm(formName) {
  319 + this.$refs[formName].validate((valid) => {
  320 + if (valid) {
  321 + alert("submit!");
316 322 } else {
317   - this.$confirm("试题未有题目!", "消息");
  323 + console.log("error submit!!");
  324 + return false;
318 325 }
319   - },
320   - load() {
321   - this.loading = true;
322   - this.parameter.pageIndex++;
323   - this.GetList();
324   - this.loading = false;
325   - },
326   - GetList() {
327   -
328   - if (this.parameter.QuestionClassId == '1') {
329   - if(!this.loadingType)
330   - GetQuestionClassByType({ ClassType: 2 }).then(res => {
  326 + });
  327 + },
  328 + resetForm(formName) {
  329 + this.$refs[formName].resetFields();
  330 + },
  331 + removeDomain(item) {
  332 + var index = this.dynamicValidateForm.domains.indexOf(item);
  333 + if (index !== -1) {
  334 + this.dynamicValidateForm.domains.splice(index, 1);
  335 + }
  336 + },
  337 + addDomain() {
  338 + this.dynamicValidateForm.domains.push({
  339 + value: "",
  340 + key: Date.now(),
  341 + });
  342 + },
  343 + changetimestartend(val, aa) {
  344 + this.TestPaper.EffectiveStartTime = formatTime(val[0]);
  345 + this.TestPaper.EffectiveEndTime = formatTime(val[1]);
  346 + },
  347 + search() {
  348 + this.parameter.pageIndex = 1;
  349 + this.parameter.QuestionClassId = Number(this.activeTab);
  350 + this.GetList();
  351 + },
  352 + SubmitTestPaper() {
  353 + this.TestPaper.QuestionBankIds = this.arr2.map((u) => u.id);
  354 + var d = this.TestPaper;
  355 + if (this.arr2.length > 0) {
  356 + EditTestPaper(this.TestPaper).then((res) => {
  357 + if (res.data.code == 200) {
  358 + this.$confirm("组卷成功!", "消息");
  359 + } else {
  360 + this.$confirm("组卷失败!", "消息");
  361 + }
  362 + });
  363 + } else {
  364 + this.$confirm("试题没有题目!", "消息");
  365 + }
  366 + },
  367 + load() {
  368 + this.loading = true;
  369 + this.parameter.pageIndex++;
  370 + this.GetList();
  371 + this.loading = false;
  372 + },
  373 + GetList() {
  374 + if (this.parameter.QuestionClassId == "1") {
  375 + if (!this.loadingType)
  376 + GetQuestionClassByType({ ClassType: 2 }).then((res) => {
331 377 var classarr = res.data.data || [];
332   - this.arr1 = classarr.map(rs => {
  378 + this.arr1 = classarr.map((rs) => {
333 379 rs.subject = rs.subjectName = rs.ClassificationName;
334   - rs.type = 'wd';
  380 + rs.type = "wd";
335 381 rs.subjectContent = "[]";
336 382 return rs;
337 383 });
338 384 this.loadingType = true;
339 385 });
340   - }
341   - else {
342   - getQuestionList(this.parameter).then((res) => {
343   - if (this.parameter.pageIndex == 1) {
344   - this.arr1 = [];
345   - }
346   - res.data.data.rows.forEach((item, i) => {
347   - this.arr1.push(item);
348   - });
349   - this.count = res.data.data.total;
350   - this.$forceUpdate();
  386 + } else {
  387 + getQuestionList(this.parameter).then((res) => {
  388 + if (this.parameter.pageIndex == 1) {
  389 + this.arr1 = [];
  390 + }
  391 + res.data.data.rows.forEach((item, i) => {
  392 + this.arr1.push(item);
351 393 });
352   - }
353   - },
354   - end1(e) {
355   - var that = this;
356   - if (that.arr1.length < 10) {
357   - this.load();
358   - }
359   -
360   - var items = this.arr2.filter(function (m) {
361   - return m.id == that.moveId;
  394 + this.count = res.data.data.total;
  395 + this.$forceUpdate();
362 396 });
  397 + }
  398 + },
  399 + end1(e) {
  400 + var that = this;
  401 + if (that.arr1.length < 10) {
  402 + this.load();
  403 + }
363 404  
364   - //如果左边
365   - if (items.length < 2) return;
366   - this.arr2.splice(e.newDraggableIndex, 1);
  405 + var items = this.arr2.filter(function (m) {
  406 + return m.id == that.moveId;
  407 + });
367 408  
368   - // SingleNumber:0,
369   - // MultipleNumber:0,
370   - // SubjectiveNumber:0,
371   - },
372   - //从右边移除到左边
373   - RemoveHere(e) {
374   - if (e.item._underlying_vm_.subjectType == 1) {
375   - this.TestPaper.SingleNumber -= 1;
376   - }
377   - if (e.item._underlying_vm_.subjectType == 2) {
378   - this.TestPaper.MultipleNumber -= 1;
379   - }
380   - if (e.item._underlying_vm_.subjectType == 3) {
381   - this.TestPaper.SubjectiveNumber -= 1;
382   - }
383   - this.TestPaper.TotalScore -= e.item._underlying_vm_.fraction;
384   - this.TestPaper.QuestionBankIds = this.arr2.map((u) => u.id);
385   - },
386   - //从左边添加到右边
387   - ComeHere(e) {
388   - var d = e.item._underlying_vm_;
389   - if (e.item._underlying_vm_.subjectType == 1) {
390   - this.TestPaper.SingleNumber += 1;
391   - }
392   - if (e.item._underlying_vm_.subjectType == 2) {
393   - this.TestPaper.MultipleNumber += 1;
394   - }
395   - if (e.item._underlying_vm_.subjectType == 3) {
396   - this.TestPaper.SubjectiveNumber += 1;
397   - }
398   - this.TestPaper.TotalScore += e.item._underlying_vm_.fraction;
399   -
400   - this.TestPaper.QuestionBankIds = this.arr2.map((u) => u.id);
401   -
402   - if (d.type == 'wd') {
403   - getQuestionList({
404   - QuestionClassId: d.id,
405   - PageIndex: 1,
406   - PageSize: 1000,
407   - }).then(res => {
408   - var data = res.data.data.rows || [];
409   - this.arr2 = this.arr2.filter(o => o.type != 'wd');
410   - // this.arr1.splice(this.arr1.findIndex(o=>o.id == d.id),1)
411   - this.classarr.push(d.id);
412   - // var test = this.arr2;
413   - this.arr2.push(...data);
414   - data.forEach(rs => {
415   - if (rs.subjectType == 1) {
416   - this.TestPaper.SingleNumber += 1;
417   - }
418   - if (rs.subjectType == 2) {
419   - this.TestPaper.MultipleNumber += 1;
420   - }
421   - if (rs.subjectType == 3) {
422   - this.TestPaper.SubjectiveNumber += 1;
423   - }
424   - });
  409 + //如果左边
  410 + if (items.length < 2) return;
  411 + this.arr2.splice(e.newDraggableIndex, 1);
425 412  
  413 + // SingleNumber:0,
  414 + // MultipleNumber:0,
  415 + // SubjectiveNumber:0,
  416 + },
  417 + //从右边移除到左边
  418 + RemoveHere(e) {
  419 + if (e.item._underlying_vm_.subjectType == 1) {
  420 + this.TestPaper.SingleNumber -= 1;
  421 + }
  422 + if (e.item._underlying_vm_.subjectType == 2) {
  423 + this.TestPaper.MultipleNumber -= 1;
  424 + }
  425 + if (e.item._underlying_vm_.subjectType == 3) {
  426 + this.TestPaper.SubjectiveNumber -= 1;
  427 + }
  428 + this.TestPaper.TotalScore -= e.item._underlying_vm_.fraction;
  429 + this.TestPaper.QuestionBankIds = this.arr2.map((u) => u.id);
  430 + },
  431 + //从左边添加到右边
  432 + ComeHere(e) {
  433 + var d = e.item._underlying_vm_;
  434 + if (e.item._underlying_vm_.subjectType == 1) {
  435 + this.TestPaper.SingleNumber += 1;
  436 + }
  437 + if (e.item._underlying_vm_.subjectType == 2) {
  438 + this.TestPaper.MultipleNumber += 1;
  439 + }
  440 + if (e.item._underlying_vm_.subjectType == 3) {
  441 + this.TestPaper.SubjectiveNumber += 1;
  442 + }
  443 + this.TestPaper.TotalScore += e.item._underlying_vm_.fraction;
  444 +
  445 + this.TestPaper.QuestionBankIds = this.arr2.map((u) => u.id);
  446 +
  447 + if (d.type == "wd") {
  448 + getQuestionList({
  449 + QuestionClassId: d.id,
  450 + PageIndex: 1,
  451 + PageSize: 1000,
  452 + }).then((res) => {
  453 + var data = res.data.data.rows || [];
  454 + this.arr2 = this.arr2.filter((o) => o.type != "wd");
  455 + // this.arr1.splice(this.arr1.findIndex(o=>o.id == d.id),1)
  456 + this.classarr.push(d.id);
  457 + // var test = this.arr2;
  458 + this.arr2.push(...data);
  459 + data.forEach((rs) => {
  460 + if (rs.subjectType == 1) {
  461 + this.TestPaper.SingleNumber += 1;
  462 + }
  463 + if (rs.subjectType == 2) {
  464 + this.TestPaper.MultipleNumber += 1;
  465 + }
  466 + if (rs.subjectType == 3) {
  467 + this.TestPaper.SubjectiveNumber += 1;
  468 + }
426 469 });
427   - }
428   - },
429   - //右边往左边拖动时的事件
430   - end2(e) {
431   - var that = this;
432   - var items = this.arr1.filter(function (m) {
433   - return m.id == that.moveId;
434 470 });
435   - //如果左边
436   - if (items.length < 2) return;
437   - this.arr1.splice(e.newDraggableIndex, 1);
438   - },
439   - //move回调方法
440   - onMove(e, originalEvent) {
441   - //this.moveId = e.relatedContext.element.id;
442   - return true;
443   - },
444   - getQuestionClassListHeadler() {
445   - let _this = this;
446   - GetToplevel().then((res) => {
447   - var gettree = function (titem) {
448   - titem.children = [];
449   - let childrenList = res.data.data.filter(
450   - (u) => u.ParentId == titem.value
451   - );
452   - if (childrenList.length == 0) titem.children = undefined;
453   - res.data.data
454   - .filter((u) => u.ParentId == titem.value)
455   - .forEach((item, i) => {
456   - var model = {
457   - value: item.id,
458   - label: item.ClassTitle,
459   - };
460   - gettree(model);
461   - titem.children.push(model);
462   - });
463   - };
  471 + }
  472 + },
  473 + //右边往左边拖动时的事件
  474 + end2(e) {
  475 + var that = this;
  476 + var items = this.arr1.filter(function (m) {
  477 + return m.id == that.moveId;
  478 + });
  479 + //如果左边
  480 + if (items.length < 2) return;
  481 + this.arr1.splice(e.newDraggableIndex, 1);
  482 + },
  483 + //move回调方法
  484 + onMove(e, originalEvent) {
  485 + //this.moveId = e.relatedContext.element.id;
  486 + return true;
  487 + },
  488 + getQuestionClassListHeadler() {
  489 + let _this = this;
  490 + GetToplevel().then((res) => {
  491 + var gettree = function (titem) {
  492 + titem.children = [];
  493 + let childrenList = res.data.data.filter(
  494 + (u) => u.ParentId == titem.value
  495 + );
  496 + if (childrenList.length == 0) titem.children = undefined;
464 497 res.data.data
465   - .filter((u) => u.ParentId == 0)
  498 + .filter((u) => u.ParentId == titem.value)
466 499 .forEach((item, i) => {
467 500 var model = {
468 501 value: item.id,
469 502 label: item.ClassTitle,
470 503 };
471 504 gettree(model);
472   - _this.QuestionClass.push(model);
473   - _this.treeData.push(model);
  505 + titem.children.push(model);
474 506 });
475   - });
476   - },
  507 + };
  508 + res.data.data
  509 + .filter((u) => u.ParentId == 0)
  510 + .forEach((item, i) => {
  511 + var model = {
  512 + value: item.id,
  513 + label: item.ClassTitle,
  514 + };
  515 + gettree(model);
  516 + _this.QuestionClass.push(model);
  517 + _this.treeData.push(model);
  518 + });
  519 + });
477 520 },
478   - };
  521 + },
  522 +};
479 523 </script>
480 524  
481 525 <style lang="scss" scoped>
482   - .el-row {
483   -
484   - /* margin-bottom: 20px; */
485   - &:last-child {
486   - margin-bottom: 0;
487   - }
488   - }
489   -
490   - .el-col {
491   - border-radius: 4px;
492   - }
493   -
494   - .bg-purple-dark {
495   - background: #99a9bf;
  526 +.el-row {
  527 + /* margin-bottom: 20px; */
  528 + &:last-child {
  529 + margin-bottom: 0;
496 530 }
497   -
498   - .bg-purple {
499   - background: #efefef;
500   - }
501   -
502   - .bg-purple-light {
503   - background: #e5e9f2;
  531 +}
  532 +
  533 +.el-col {
  534 + border-radius: 4px;
  535 +}
  536 +
  537 +.bg-purple-dark {
  538 + background: #99a9bf;
  539 +}
  540 +
  541 +.bg-purple {
  542 + background: #efefef;
  543 +}
  544 +
  545 +.bg-purple-light {
  546 + background: #e5e9f2;
  547 +}
  548 +
  549 +.grid-content {
  550 + border-radius: 4px;
  551 + min-height: 36px;
  552 + height: 100%;
  553 +}
  554 +
  555 +.row-bg {
  556 + padding: 10px 0;
  557 + background-color: #f9fafc;
  558 +}
  559 +
  560 +.infinite-list {
  561 + list-style: none;
  562 + margin: 0px;
  563 + padding: 0px;
  564 +
  565 + &::-webkit-scrollbar {
  566 + width: 6px;
504 567 }
505 568  
506   - .grid-content {
507   - border-radius: 4px;
508   - min-height: 36px;
509   - height: 100%;
  569 + //滚动条小方块
  570 + &::-webkit-scrollbar-thumb {
  571 + border-radius: 10px;
  572 + background: #304156;
510 573 }
511 574  
512   - .row-bg {
513   - padding: 10px 0;
514   - background-color: #f9fafc;
  575 + //滚动条轨道
  576 + &::-webkit-scrollbar-track {
  577 + // border-radius: 10px;
  578 + height: 100px;
  579 + background: #cdcdcd;
515 580 }
516 581  
517   - .infinite-list {
518   - list-style: none;
519   - margin: 0px;
520   - padding: 0px;
521   -
522   - &::-webkit-scrollbar {
523   - width: 6px;
524   - }
525   -
526   - //滚动条小方块
527   - &::-webkit-scrollbar-thumb {
528   - border-radius: 10px;
529   - background: #304156;
530   - }
531   -
532   - //滚动条轨道
533   - &::-webkit-scrollbar-track {
534   - // border-radius: 10px;
535   - height: 100px;
536   - background: #cdcdcd;
  582 + .infinite-list-item {
  583 + padding: 10px;
  584 + min-height: 60px;
  585 + width: 95%;
  586 + margin: auto;
  587 + background-color: #fff;
  588 + margin-bottom: 10px;
  589 + border-radius: 5px;
  590 + box-shadow: 0 0 5px #cdcdcd;
  591 +
  592 + &:first-child {
  593 + margin-top: 10px;
537 594 }
538   -
539   - .infinite-list-item {
540   - padding: 10px;
541   - min-height: 60px;
542   - width: 95%;
543   - margin: auto;
544   - background-color: #fff;
545   - margin-bottom: 10px;
546   - border-radius: 5px;
547   - box-shadow: 0 0 5px #cdcdcd;
548   -
549   - &:first-child {
550   - margin-top: 10px;
551   - }
552   - }
553   - }
554   -
555   - .option-p {
556   - line-height: 15px;
557   - }
558   -
559   - .areahead {
560   - text-align: center;
561   - height: 60px;
562   - line-height: 60px;
563   - border-bottom: 1px solid #cdcdcd;
564   - }
565   -
566   - .testPaper-manager {
567   - margin: 10px 20px 10px 10px;
568   - }
569   -
570   - .testPaper-manager .el-form-item {
571   - margin-bottom: 20px;
572   - }
573   -
574   - .el-form-item-custom {
575   - margin-bottom: 0px !important;
576   - }
577   -
578   - .testpaper-input {
579   - //max-width: 400px;
580 595 }
  596 +}
  597 +
  598 +.option-p {
  599 + line-height: 15px;
  600 +}
  601 +
  602 +.areahead {
  603 + text-align: center;
  604 + height: 60px;
  605 + line-height: 60px;
  606 + border-bottom: 1px solid #cdcdcd;
  607 +}
  608 +
  609 +.testPaper-manager {
  610 + margin: 10px 20px 10px 10px;
  611 +}
  612 +
  613 +.testPaper-manager .el-form-item {
  614 + margin-bottom: 20px;
  615 +}
  616 +
  617 +.el-form-item-custom {
  618 + margin-bottom: 0px !important;
  619 +}
  620 +
  621 +.testpaper-input {
  622 + //max-width: 400px;
  623 +}
581 624 </style>
582 625 \ No newline at end of file
... ...
src/views/live/index.vue 0 → 100644
  1 +<template>
  2 + <div class="container">
  3 + <div id="id_test_video" style="width:100%; height:auto;"></div>
  4 + </div>
  5 +</template>
  6 +<script>
  7 +export default {
  8 + data() {
  9 + return {
  10 + streaName:''
  11 + };
  12 + },
  13 + created(){
  14 + let streaName = this.$route.query.id;
  15 + this.streaName = streaName;
  16 + },
  17 + mounted() {
  18 + var player = new TcPlayer("id_test_video", {
  19 + m3u8: `http://watch.t1j2.com/live/${this.streaName}.m3u8`,
  20 + flv: `http://watch.t1j2.com/live/${this.streaName}.flv`, //增加了一个 flv 的播放地址,用于PC平台的播放 请替换成实际可用的播放地址
  21 + autoplay: true, //iOS 下 safari 浏览器,以及大部分移动端浏览器是不开放视频自动播放这个能力的
  22 + poster: "",
  23 + width: "1200", //视频的显示宽度,请尽量使用视频分辨率宽度
  24 + height: "800", //视频的显示高度,请尽量使用视频分辨率高度
  25 + });
  26 + },
  27 + methods: {},
  28 +};
  29 +</script>
  30 +<style lang="scss" scoped>
  31 +.container{
  32 + display: flex;
  33 + justify-content: center;
  34 + align-items: center;
  35 + height: calc(100vh - 50px);
  36 + background-color: #000;
  37 +}
  38 +#id_test_video{
  39 + display: flex;
  40 + justify-content: center;
  41 + align-items: center;
  42 +}
  43 +</style>
  44 +<style scoped>
  45 +>>>.vcp-player{
  46 + display: flex;
  47 + justify-content: center;
  48 + align-items: center;
  49 + margin: 0;
  50 +}
  51 +</style>
0 52 \ No newline at end of file
... ...
src/views/user/picuserimport.vue
1 1 <template>
2   - <div style="padding:10px">
  2 + <div style="padding: 10px">
3 3 <div class="seetingsDiv" style="">
4   - <div class="flex" style="width:75%">
5   -
6   -
  4 + <div class="flex" style="margin-top: 10px">
7 5 <el-form :inline="true" class="demo-form-inline">
8 6 <el-form-item label="关键字">
9   - <el-input placeholder="输入关键字搜索" v-model="query.keyword"></el-input>
  7 + <el-input
  8 + placeholder="输入关键字搜索"
  9 + v-model="query.keyword"
  10 + ></el-input>
10 11 </el-form-item>
11 12  
12   -
13   -
14 13 <el-form-item label="最高学历">
15 14 <el-select v-model="query.xueli" placeholder="最高学历">
16 15 <el-option label="大专" value="dazhuan"></el-option>
... ... @@ -25,374 +24,446 @@
25 24 <el-option label="女" value="0"></el-option>
26 25 </el-select>
27 26 </el-form-item>
28   -
29   -
30   - <el-form-item>
31   - <el-button type="success" @click="search">搜索</el-button>
32   - <el-button size="mini" @click="handleshare()" type="primary">批量入库</el-button>
33   - <el-button size="mini" @click="handleAdd()" type="primary">新增一行</el-button>
34   - </el-form-item>
35 27 </el-form>
36   -
37 28 </div>
38   - <el-upload class="upload-demo" action="/api/Account/importUsers?UserClassId=0" multiple :limit="1"
39   - :show-file-list="false" :on-exceed="handleExceed" :on-success="handleSuccess" :file-list="fileList">
40   - <el-button size="small" type="primary">上传待解析图片</el-button>
41   - </el-upload>
  29 + <div class="flex align-center" style="margin-top: 10px">
  30 + <el-button type="success" @click="search">搜索</el-button>
  31 + <el-button size="mini" @click="handleshare()" type="primary"
  32 + >批量入库</el-button
  33 + >
  34 + <el-button size="mini" @click="handleAdd()" type="primary"
  35 + >新增一行</el-button
  36 + >
  37 + <el-upload
  38 + class="upload-demo"
  39 + action="/api//UserInfo/ResumeIdentification"
  40 + multiple
  41 + :headers="{
  42 + Authorization: Authorization,
  43 + }"
  44 + :limit="1"
  45 + :show-file-list="false"
  46 + :on-exceed="handleExceed"
  47 + :on-success="handleSuccess"
  48 + >
  49 + <el-button size="small" type="primary">上传待解析图片</el-button>
  50 + </el-upload>
  51 + </div>
42 52 </div>
43 53  
44   -
45   -
46   - <el-table ref="mytable" :data="table_data" style="width: 100%" @selection-change="handleSelectionChange">
  54 + <el-table
  55 + ref="mytable"
  56 + :data="table_data"
  57 + style="width: 100%"
  58 + border
  59 + @selection-change="handleSelectionChange"
  60 + >
47 61 <el-table-column v-if="radio" type="index" width="50"></el-table-column>
48   - <el-table-column v-if="selection" type="selection" width="55"></el-table-column>
49   - <el-table-column align="center" v-for="(item,index,key) in table_columns" :item="item" :key="key" :index="index"
50   - :label="item.label">
  62 + <el-table-column type="expand">
  63 + <template slot-scope="props">
  64 + <el-form label-position="left" inline class="demo-table-expand">
  65 + <el-form-item :label="key" v-for="(item,key) in props.row.DataJsonObj.result" :key="key">
  66 + <span>{{ item }}</span>
  67 + </el-form-item>
  68 + </el-form>
  69 + </template>
  70 + </el-table-column>
  71 + <el-table-column
  72 + v-if="selection"
  73 + type="selection"
  74 + width="55"
  75 + ></el-table-column>
  76 + <el-table-column
  77 + align="center"
  78 + v-for="(item, index, key) in table_columns"
  79 + :item="item"
  80 + :key="key"
  81 + :index="index"
  82 + :label="item.label"
  83 + >
51 84 <template slot-scope="scope">
52   - <el-input v-if=" scope.row.edit" size="small" v-model="scope.row[item.prop]" :placeholder="'请输入'+item.label">
  85 + <el-input
  86 + v-if="scope.row.edit"
  87 + size="small"
  88 + v-model="scope.row[item.prop]"
  89 + :placeholder="'请输入' + item.label"
  90 + >
53 91 </el-input>
54   - <span v-if=" !scope.row.edit">{{scope.row[item.prop]}}</span>
  92 + <span v-if="!scope.row.edit">{{ scope.row[item.prop] }}{{ scope.row.edit }}</span>
55 93 </template>
56 94 </el-table-column>
57 95 <el-table-column label="操作" align="center" width="300">
58 96 <template slot-scope="scope">
59 97 <!-- 全局控制的编辑 -->
60   - <div v-if="is_edit&&scope.row.add==undefined" style="display: inline-block;">
  98 + <div
  99 + v-if="is_edit && scope.row.add == undefined"
  100 + style="display: inline-block"
  101 + >
61 102 <!-- 编辑 -->
62   - <el-button size="mini" v-if="!scope.row.edit" @click="handleEdit(scope.$index, scope.row)" type="primary">编辑
  103 + <el-button
  104 + size="mini"
  105 + v-if="!scope.row.edit"
  106 + @click="handleEdit(scope.$index, scope.row)"
  107 + type="primary"
  108 + >编辑
63 109 </el-button>
64 110 <!-- 保存 -->
65   - <el-button size="mini" type="success" :plain="true" v-if="scope.row.edit"
66   - @click="handleSave(scope.$index, scope.row)">保存</el-button>
  111 + <el-button
  112 + size="mini"
  113 + type="success"
  114 + :plain="true"
  115 + v-if="scope.row.edit"
  116 + @click="handleSave(scope.$index, scope.row)"
  117 + >保存</el-button
  118 + >
67 119 </div>
68 120 <!-- 添加控制 -->
69   - <div v-if="scope.row.add!=undefined&&scope.row.add" style="display: inline-block;">
  121 + <div
  122 + v-if="scope.row.add != undefined && scope.row.add"
  123 + style="display: inline-block"
  124 + >
70 125 <!-- 保存 -->
71   - <el-button size="mini" type="success" :plain="true" v-if="scope.row.edit"
72   - @click="handleSave(scope.$index, scope.row)">保存</el-button>
  126 + <el-button
  127 + size="mini"
  128 + type="success"
  129 + :plain="true"
  130 + v-if="scope.row.edit"
  131 + @click="handleSave(scope.$index, scope.row)"
  132 + >保存</el-button
  133 + >
73 134 </div>
74 135 <!-- 全局控制删除 -->
75   - <el-button size="mini" v-if="is_delete&&scope.row.add==undefined" :plain="true" type="warning"
76   - style="margin-left:10px" @click="handleshare(scope.$index, scope.row)">确认入库</el-button>
77   - <el-button size="mini" v-if="is_delete&&scope.row.add==undefined" :plain="true" type="danger"
78   - style="margin-left:10px" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
  136 + <el-button
  137 + size="mini"
  138 + v-if="is_delete && scope.row.add == undefined"
  139 + :plain="true"
  140 + type="warning"
  141 + style="margin-left: 10px"
  142 + @click="handleshare(scope.$index, scope.row)"
  143 + >确认入库</el-button
  144 + >
  145 + <el-button
  146 + size="mini"
  147 + v-if="is_delete && scope.row.add == undefined"
  148 + :plain="true"
  149 + type="danger"
  150 + style="margin-left: 10px"
  151 + @click="handleDelete(scope.$index, scope.row)"
  152 + >删除</el-button
  153 + >
79 154 </template>
80 155 </el-table-column>
81 156 </el-table>
  157 + <div class="page-box">
  158 + <el-pagination background layout="prev, pager, next" :total="queryResult.totalCount">
  159 + </el-pagination>
  160 + </div>
82 161 </div>
83 162 </template>
84 163  
85 164 <script>
86   - export default {
87   - methods: {
88   - //隔行变色
89   - tableRowClassName() {
90   - //选取DOM节点
91   - var trs = this.$refs.mytable.$el
92   - .getElementsByTagName("tbody")[0]
93   - .getElementsByTagName("tr");
94   - for (var i in trs) {
95   - if (i % 2 == 0) {
96   - //当隔行变色未true时改变颜色
97   - if (this.space_color) {
98   - trs[i].style.backgroundColor = "#f0f9eb";
99   - } else {
100   - trs[i].style.backgroundColor = "";
101   - }
102   - }
103   - }
104   - },
105   -
106   - //多选框
107   - handleSelectionChange(val) {
108   - this.multipleSelection = val;
109   - console.log("selection:", this.multipleSelection);
110   - },
111   - //编辑
112   - handleEdit(index, row) {
113   - console.log(index, row);
114   - row.edit = true;
115   - },
116   - //删除
117   - handleDelete(index, row) {
118   -
119   - console.log(index, row);
120   -
121   - this.table_data.splice(index, 1);
122   -
123   - this.$message({
124   - message: "删除成功!",
125   - type: "success"
126   - });
127   - },
128   -
129   - handleshare(index, row) {
130   - if (!row) {
131   - this.table_data = [];
132   -
133   - }
134   - else {
135   -
136   - console.log(index, row);
137   - this.table_data.splice(index, 1);
  165 +import {
  166 + UserInfo_BatchToUser,
  167 + UserInfo_Delete,
  168 + UserInfo_Update,
  169 + UserInfo_List,
  170 +} from "@/api/user";
  171 +export default {
  172 + methods: {
  173 + handleExceed() {},
  174 + handleSuccess(res) {
  175 + this.search();
  176 + },
  177 + search(){
  178 + this.queryModel.pageIndex = 1;
  179 + this.getList();
  180 + },
  181 + getList() {
  182 + UserInfo_List(this.queryModel).then((res) => {
  183 + this.queryResult = res.data;
  184 + if(res.data.data && res.data.data.length){
  185 + res.data.data = res.data.data.map(t=>{
  186 + t.DataJsonObj = JSON.parse(t.DataJson);
  187 + return t;
  188 + })
138 189 }
139   -
140   -
141   -
142   - this.$message({
143   - message: "确认成功!",
144   - type: "success"
145   - });
146   - },
147   -
148   - //保存
149   - handleSave(index, row) {
150   - console.log(index, row);
151   - row.edit = false;
152   -
153   - delete this.table_data[index].add;
154   -
155   - this.$message({
156   - message: "保存成功!",
157   - type: "success"
158   - });
159   - },
160   - handleAdd() {
161   - var addDataJson = {};
162   - for (var key in this.new_date_json) {
163   - if (key === "edit") {
164   - delete addDataJson[key];
165   - } else if (key === "add") {
166   - delete addDataJson[key];
  190 + this.table_data = res.data.data;
  191 + });
  192 + },
  193 + //隔行变色
  194 + tableRowClassName() {
  195 + //选取DOM节点
  196 + var trs = this.$refs.mytable.$el
  197 + .getElementsByTagName("tbody")[0]
  198 + .getElementsByTagName("tr");
  199 + for (var i in trs) {
  200 + if (i % 2 == 0) {
  201 + //当隔行变色未true时改变颜色
  202 + if (this.space_color) {
  203 + trs[i].style.backgroundColor = "#f0f9eb";
167 204 } else {
168   - addDataJson[key] = "";
  205 + trs[i].style.backgroundColor = "";
169 206 }
170 207 }
171   - addDataJson.edit = true;
172   - addDataJson.add = true;
173   - this.table_data.push(addDataJson);
174   - },
175   - //初始化编辑属性
176   - initEditAttribute() {
177   - var self = this;
178   - var edit = self.edit;
  208 + }
  209 + },
179 210  
180   - var dataArray = [
181   - {
182   - date: "2022-03-22",
183   - name: "王明",
184   - province: "四川",
185   - phone: '15888888888',
186   - city: "成都",
187   - address: "四川省成都市金牛区茶店子101",
188   - zip: 200333,
189   - sex: '男',
190   - age: 33,
191   - minzu: '汉',
192   - zhuanye: '计算机',
193   - xueli: '博士'
194   - }, {
195   - date: "2022-03-22",
196   - name: "周超",
197   - province: "四川",
198   - phone: '15833344444',
199   - city: "成都",
200   - address: "四川省成都市金牛区茶店子102",
201   - zip: 200333,
202   - sex: '男',
203   - age: 30,
204   - minzu: '汉',
205   - zhuanye: '计算机',
206   - xueli: '博士'
207   - }, {
208   - date: "2022-03-22",
209   - name: "杨志",
210   - province: "四川",
211   - phone: '15827271123',
212   - city: "成都",
213   - address: "四川省成都市金牛区茶店子103",
214   - zip: 200333,
215   - sex: '男',
216   - age: 28,
217   - minzu: '汉',
218   - zhuanye: '计算机',
219   - xueli: '博士'
220   - },
  211 + //多选框
  212 + handleSelectionChange(val) {
  213 + this.multipleSelection = val;
  214 + console.log("selection:", this.multipleSelection);
  215 + },
  216 + //编辑
  217 + handleEdit(index, row) {
  218 + this.table_data[index].edit = true;
  219 + this.table_data.push(this.table_data.pop());
  220 + this.$forceUpdate();
  221 + },
  222 + //删除
  223 + handleDelete(index, row) {
  224 + console.log(index, row);
221 225  
222   - ];
  226 + this.table_data.splice(index, 1);
  227 + UserInfo_Delete(row.id);
  228 + this.$message({
  229 + message: "删除成功!",
  230 + type: "success",
  231 + });
  232 + },
223 233  
224   - if (dataArray.length > 0) {
225   - //添加编辑事件
226   - for (var index in dataArray) {
227   - dataArray[index]["edit"] = false;
228   - this.table_data.push(dataArray[index]);
229   - }
  234 + handleshare(index, row) {
  235 + if (!row) {
  236 + this.table_data = [];
  237 + } else {
  238 + console.log(index, row);
  239 + this.table_data.splice(index, 1);
  240 + }
  241 + UserInfo_BatchToUser(row.id);
  242 + this.$message({
  243 + message: "入库成功!",
  244 + type: "success",
  245 + });
  246 + },
230 247  
231   - if (Object.keys(this.new_date_json).length === 0) {
232   - //新增时,初始化数据结构
233   - this.initAddDataJson(dataArray[0]);
234   - }
  248 + //保存
  249 + handleSave(index, row) {
  250 + delete this.table_data[index].edit;
  251 + let formData = {...row};
  252 + delete formData.DataJsonObj;
  253 + UserInfo_Update(row);
  254 + this.table_data.push(this.table_data.pop());
  255 + this.$forceUpdate();
  256 + this.$message({
  257 + message: "保存成功!",
  258 + type: "success",
  259 + });
  260 + },
  261 + handleAdd() {
  262 + var addDataJson = {};
  263 + for (var key in this.new_date_json) {
  264 + if (key === "edit") {
  265 + delete addDataJson[key];
  266 + } else if (key === "add") {
  267 + delete addDataJson[key];
  268 + } else {
  269 + addDataJson[key] = "";
235 270 }
236   - console.log("this.tableData:", this.table_data);
237   - },
238   - initAddDataJson(dataArray) {
239   - //新增时,初始化数据结构
240   - var dataJson = dataArray;
241   - var newDateJson = {};
242   - for (var key in dataJson) {
243   - if (key === "edit") {
244   - newDateJson[key] = "true";
245   - } else {
246   - newDateJson[key] = "";
247   - }
  271 + }
  272 + addDataJson.edit = true;
  273 + addDataJson.add = true;
  274 + this.table_data.push(addDataJson);
  275 + },
  276 + //初始化编辑属性
  277 + initEditAttribute() {
  278 + var self = this;
  279 + var edit = self.edit;
  280 + },
  281 + initAddDataJson(dataArray) {
  282 + //新增时,初始化数据结构
  283 + var dataJson = dataArray;
  284 + var newDateJson = {};
  285 + for (var key in dataJson) {
  286 + if (key === "edit") {
  287 + newDateJson[key] = "true";
  288 + } else {
  289 + newDateJson[key] = "";
248 290 }
249   - newDateJson["add"] = true;
250   - this.new_date_json = newDateJson;
251 291 }
  292 + newDateJson["add"] = true;
  293 + this.new_date_json = newDateJson;
252 294 },
253   - mounted: function () {
254   - this.initEditAttribute();
255   - //确保方法在页面渲染后调用
  295 + },
  296 + created() {
  297 + this.getList();
  298 + },
  299 + mounted: function () {
  300 + this.initEditAttribute();
  301 + //确保方法在页面渲染后调用
  302 + this.$nextTick(function () {
  303 + /////方法
  304 + this.tableRowClassName();
  305 + });
  306 + },
  307 + watch: {
  308 + space_color: function () {
  309 + //监听数据变化
256 310 this.$nextTick(function () {
257 311 /////方法
258 312 this.tableRowClassName();
259 313 });
260 314 },
261   - watch: {
262   - space_color: function () {
263   - //监听数据变化
264   - this.$nextTick(function () {
265   - /////方法
266   - this.tableRowClassName();
267   - });
268   - },
269   - table_data: function () {
270   - //监听数据变化f
271   - this.$nextTick(function () {
272   - /////方法
273   - this.tableRowClassName();
274   - });
275   - }
  315 + table_data: function () {
  316 + //监听数据变化f
  317 + this.$nextTick(function () {
  318 + /////方法
  319 + this.tableRowClassName();
  320 + });
276 321 },
277   - data() {
278   - return {
279   - query: {},
280   - new_date_json: {}, //数据结构
281   - multipleSelection: [], //复选框,数据
282   - is_edit: true, //是否可编辑
283   - is_delete: true, //是否可删除
284   - selection: true, //是否需要复选框
285   - radio: false, //单选变色
286   - space_color: true, //隔行变色
287   - //表头信息
288   - table_columns: [
289   - {
290   - prop: "date",
291   - label: "日期",
292   - width: "150"
293   - },
294   - {
295   - prop: "name",
296   - label: "姓名",
297   - width: "150"
298   - },
299   - {
300   - prop: "phone",
301   - label: "手机号",
302   - width: "150"
303   - },
304   - {
305   - prop: "age",
306   - label: "年龄",
307   - width: "80"
308   - },
309   - {
310   - prop: "sex",
311   - label: "性别",
312   - width: "80"
313   - },
314   - {
315   - prop: "minzu",
316   - label: "民族",
317   - width: ""
318   - },
319   - {
320   - prop: "zhuanye",
321   - label: "专业",
322   - width: ""
323   - },
324   - {
325   - prop: "xueli",
326   - label: "最高学历",
327   - width: ""
328   - },
329   - {
330   - prop: "city",
331   - label: "城市",
332   - width: "150"
333   - },
334   - {
335   - prop: "address",
336   - label: "地址",
337   - width: "150"
338   - }
339   - ],
340   - //表格数据
341   - table_data: [
342   - // {
343   - // date: "2016-05-03",
344   - // name: "王小虎",
345   - // province: "上海",
346   - // city: "普陀区",
347   - // address: "上海市普陀区金沙江路 1518 弄",
348   - // zip: 200333,
349   - // sex: 18
350   - // },
351   - // {
352   - // date: "2016-05-02",
353   - // sex: 18,
354   - // name: "王小虎",
355   - // province: "上海",
356   - // city: "普陀区",
357   - // address: "上海市普陀区金沙江路 1518 弄",
358   - // zip: 200333
359   - // },
360   - // {
361   - // date: "2016-05-04",
362   - // name: "王小虎",
363   - // sex: 18,
364   - // province: "上海",
365   - // city: "普陀区",
366   - // address: "上海市普陀区金沙江路 1518 弄",
367   - // zip: 200333
368   - // }
369   - ]
370   - };
371   - }
372   - };
  322 + },
  323 + data() {
  324 + return {
  325 + queryResult:{},
  326 + queryModel: {
  327 + pageIndex: 1,
  328 + pageSize: 10,
  329 + },
  330 + query: {},
  331 + new_date_json: {}, //数据结构
  332 + multipleSelection: [], //复选框,数据
  333 + is_edit: true, //是否可编辑
  334 + is_delete: true, //是否可删除
  335 + selection: true, //是否需要复选框
  336 + radio: false, //单选变色
  337 + space_color: true, //隔行变色
  338 + //表头信息
  339 + table_columns: [
  340 + {
  341 + prop: "FullName",
  342 + label: "姓名",
  343 + width: "150",
  344 + },
  345 + {
  346 + prop: "PhoneNumber",
  347 + label: "手机号",
  348 + width: "150",
  349 + },
  350 + {
  351 + prop: "DateBirth",
  352 + label: "出生日期",
  353 + width: "150",
  354 + },
  355 + {
  356 + prop: "Gender",
  357 + label: "性别",
  358 + width: "80",
  359 + },
  360 + {
  361 + prop: "GraduationSchool",
  362 + label: "毕业学校",
  363 + width: "",
  364 + },
  365 + {
  366 + prop: "GraduationMajor",
  367 + label: "专业",
  368 + width: "",
  369 + },
  370 + {
  371 + prop: "Education",
  372 + label: "最高学历",
  373 + width: "",
  374 + },
  375 + {
  376 + prop: "IntendedCity",
  377 + label: "城市",
  378 + width: "150",
  379 + },
  380 + ],
  381 + //表格数据
  382 + table_data: [
  383 + // {
  384 + // date: "2016-05-03",
  385 + // name: "王小虎",
  386 + // province: "上海",
  387 + // city: "普陀区",
  388 + // address: "上海市普陀区金沙江路 1518 弄",
  389 + // zip: 200333,
  390 + // sex: 18
  391 + // },
  392 + // {
  393 + // date: "2016-05-02",
  394 + // sex: 18,
  395 + // name: "王小虎",
  396 + // province: "上海",
  397 + // city: "普陀区",
  398 + // address: "上海市普陀区金沙江路 1518 弄",
  399 + // zip: 200333
  400 + // },
  401 + // {
  402 + // date: "2016-05-04",
  403 + // name: "王小虎",
  404 + // sex: 18,
  405 + // province: "上海",
  406 + // city: "普陀区",
  407 + // address: "上海市普陀区金沙江路 1518 弄",
  408 + // zip: 200333
  409 + // }
  410 + ],
  411 + };
  412 + },
  413 +};
373 414 </script>
374 415 <style lang="scss" scoped>
375   - .seetingsDiv {
376   - display: flex;
377   - align-items: center;
378   - width: 100%;
379   - padding-top: 10px;
380   - padding-left: 10px;
381   - /* height: 60px; */
382   - background: #efefef;
383   - /* line-height: 60px; */
384   - border-radius: 5px;
385   - box-shadow: 0 0 5px #cdcdcd;
386   - justify-content: space-between;
387   - }
  416 +.el-table__expanded-cell{
  417 + padding: 10px;
  418 +}
  419 +.demo-table-expand{
  420 + display: flex;
  421 + justify-content: space-between;
  422 + flex-wrap: wrap;
  423 + box-shadow: 0 0 10px rgba(0,0,0,.3);
  424 + padding: 20px;
  425 + border-radius: 10px;
  426 +}
  427 +.demo-table-expand .el-form-item{
  428 + margin-bottom: 10px!important;
  429 + min-width: 20%;
  430 + max-width: 50%;
  431 +}
  432 +.demo-form-inline {
  433 + display: flex;
  434 + align-items: center;
  435 +}
  436 +.el-form--inline .el-form-item {
  437 + display: flex;
  438 + align-items: center;
  439 + margin-bottom: 0;
  440 +}
  441 +.aligin-center {
  442 + align-items: center;
  443 +}
  444 +.seetingsDiv {
  445 + display: flex;
  446 + align-items: center;
  447 + width: 100%;
  448 + height: auto;
  449 + padding: 30px;
  450 + background: #efefef;
  451 + /* line-height: 60px; */
  452 + border-radius: 5px;
  453 + box-shadow: 0 0 5px #cdcdcd;
  454 + justify-content: space-between;
  455 + flex-wrap: wrap;
  456 + margin-bottom: 20px;
  457 +}
388 458  
389   - .seetingsDiv button {
390   - height: 40px;
391   - background-color: #304156;
392   - border: 0px;
393   - margin-left: 10px;
394   - box-shadow: 0 0 5px #cdcdcd;
395   - float: none;
396   - margin-right: 10px;
397   - }
  459 +.seetingsDiv button {
  460 + height: 40px;
  461 + background-color: #304156;
  462 + border: 0px;
  463 + margin-left: 10px;
  464 + box-shadow: 0 0 5px #cdcdcd;
  465 + float: none;
  466 + margin-right: 10px;
  467 + margin-top: 0;
  468 +}
398 469 </style>
399 470 \ No newline at end of file
... ...