diff --git a/dist/css/index.878e05a5.css b/dist/css/index.9f1dddb0.css similarity index 52% rename from dist/css/index.878e05a5.css rename to dist/css/index.9f1dddb0.css index 20f9dd6..970b147 100644 --- a/dist/css/index.878e05a5.css +++ b/dist/css/index.9f1dddb0.css @@ -1 +1 @@ -[data-v-f6d32ee6]{margin:0;padding:0}.sign-canvas[data-v-f6d32ee6]{display:block;margin:0 auto;border:1px dashed red}.view-image[data-v-f6d32ee6]{display:block;margin:20px auto}.sign-btns[data-v-f6d32ee6]{width:800px;margin:0 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.sign-btns #clear1[data-v-f6d32ee6],.sign-btns #clear[data-v-f6d32ee6],.sign-btns #save[data-v-f6d32ee6]{margin:0 auto;display:inline-block;padding:5px 10px;width:150px;height:40px;line-height:40px;border:1px solid #eee;background:#e1e1e1;border-radius:10px;text-align:center;margin:20px auto;cursor:pointer} \ No newline at end of file +[data-v-1fd1e6f6]{margin:0;padding:0}.sign-canvas[data-v-1fd1e6f6]{display:block;margin:0 auto;border:1px dashed red}.view-image[data-v-1fd1e6f6]{display:block;margin:20px auto}.sign-btns[data-v-1fd1e6f6]{width:800px;margin:0 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.sign-btns #clear1[data-v-1fd1e6f6],.sign-btns #clear[data-v-1fd1e6f6],.sign-btns #save[data-v-1fd1e6f6]{margin:0 auto;display:inline-block;padding:5px 10px;width:150px;height:40px;line-height:40px;border:1px solid #eee;background:#e1e1e1;border-radius:10px;text-align:center;margin:20px auto;cursor:pointer} \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index f782de3..28533e7 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -vue-aliplayer-v2
\ No newline at end of file +vue-aliplayer-v2
\ No newline at end of file diff --git a/dist/js/index.61751f56.js b/dist/js/index.61751f56.js deleted file mode 100644 index 06c1f84..0000000 --- a/dist/js/index.61751f56.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(e){function t(t){for(var r,l,c=t[0],a=t[1],s=t[2],p=0,f=[];p
- + + + diff --git a/lib/vue-aliplayer-v2.common.js b/lib/vue-aliplayer-v2.common.js index f31f541..fa2ead3 100644 --- a/lib/vue-aliplayer-v2.common.js +++ b/lib/vue-aliplayer-v2.common.js @@ -169,12 +169,12 @@ function _defineProperty(obj, key, value) { // EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/es6.function.name.js var es6_function_name = __webpack_require__("7cfd"); -// CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"05d0d90a-vue-loader-template"}!./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/src/main.vue?vue&type=template&id=b393ee62& -var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":_vm.config.id}})} +// CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"05d0d90a-vue-loader-template"}!./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/src/main.vue?vue&type=template&id=2cbd4957& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":_vm.id}})} var staticRenderFns = [] -// CONCATENATED MODULE: ./packages/AliplayerV2/src/main.vue?vue&type=template&id=b393ee62& +// CONCATENATED MODULE: ./packages/AliplayerV2/src/main.vue?vue&type=template&id=2cbd4957& // CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/src/main.vue?vue&type=script&lang=js& // @@ -190,6 +190,11 @@ var staticRenderFns = [] default: function _default() { return null; } + }, + id: { + required: false, + type: [String], + default: "player-".concat(Date.parse(new Date())) } }, data: function data() { @@ -197,13 +202,13 @@ var staticRenderFns = [] player: null, //播放器实例 config: { - id: "player-".concat(Date.parse(new Date())), + id: null, //播放器的ID width: '100%', autoplay: true, - isLive: true, + // isLive: true, //支持播放地址播放,此播放优先级最高 - source: 'rtmp://182.145.195.238:1935/hls/1194076936807170050', + // source: 'rtmp://182.145.195.238:1935/hls/1194076936807170050', cssLink: 'https://g.alicdn.com/de/prismplayer/2.8.2/skins/default/aliplayer-min.css', scriptSrc: 'https://g.alicdn.com/de/prismplayer/2.8.2/aliplayer-min.js' }, @@ -289,7 +294,11 @@ var staticRenderFns = [] }; }, mounted: function mounted() { - this.init(); + var _this = this; + + this.$nextTick(function () { + _this.init(); + }); }, methods: { /** @@ -297,14 +306,14 @@ var staticRenderFns = [] * 加载Alipayer的SDK */ init: function init() { - var _this = this; + var _this2 = this; var load = true; - var scriptTag = document.getElementById(scriptID); var linkID = 'aliplayer-min-css'; var scriptID = 'aliplayer-min-js'; var head = document.getElementsByTagName('head'); var html = document.getElementsByTagName('html'); + var scriptTag = document.getElementById(scriptID); if (!document.getElementById(linkID)) { var link = document.createElement('link'); @@ -322,7 +331,7 @@ var staticRenderFns = [] } scriptTag.addEventListener("load", function () { - _this.initPlayer(); + _this2.initPlayer(); load = false; }); @@ -337,7 +346,7 @@ var staticRenderFns = [] * @description SDK文档地址:https://help.aliyun.com/document_detail/125572.html?spm=a2c4g.11186623.6.1084.131d1c4cJT7o5Z */ initPlayer: function initPlayer() { - var _this2 = this; + var _this3 = this; if (typeof window.Aliplayer != 'undefined') { var options = this.options; @@ -348,15 +357,16 @@ var staticRenderFns = [] } } + this.config.id = this.id; this.player = new Aliplayer(this.config, function (player) { console.log('播放器创建好了。', player); }); var _loop = function _loop(ev) { - _this2.player.on(_this2.events[ev], function (e) { - console.log("object ".concat(_this2.events[ev]), e); + _this3.player.on(_this3.events[ev], function (e) { + console.log("object ".concat(_this3.events[ev]), e); - _this2.$emit(_this2.events[ev], e); + _this3.$emit(_this3.events[ev], e); }); }; diff --git a/lib/vue-aliplayer-v2.umd.js b/lib/vue-aliplayer-v2.umd.js index c38bf19..d473870 100644 --- a/lib/vue-aliplayer-v2.umd.js +++ b/lib/vue-aliplayer-v2.umd.js @@ -178,12 +178,12 @@ function _defineProperty(obj, key, value) { // EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/es6.function.name.js var es6_function_name = __webpack_require__("7cfd"); -// CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"05d0d90a-vue-loader-template"}!./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/src/main.vue?vue&type=template&id=b393ee62& -var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":_vm.config.id}})} +// CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"05d0d90a-vue-loader-template"}!./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/src/main.vue?vue&type=template&id=2cbd4957& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":_vm.id}})} var staticRenderFns = [] -// CONCATENATED MODULE: ./packages/AliplayerV2/src/main.vue?vue&type=template&id=b393ee62& +// CONCATENATED MODULE: ./packages/AliplayerV2/src/main.vue?vue&type=template&id=2cbd4957& // CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/src/main.vue?vue&type=script&lang=js& // @@ -199,6 +199,11 @@ var staticRenderFns = [] default: function _default() { return null; } + }, + id: { + required: false, + type: [String], + default: "player-".concat(Date.parse(new Date())) } }, data: function data() { @@ -206,13 +211,13 @@ var staticRenderFns = [] player: null, //播放器实例 config: { - id: "player-".concat(Date.parse(new Date())), + id: null, //播放器的ID width: '100%', autoplay: true, - isLive: true, + // isLive: true, //支持播放地址播放,此播放优先级最高 - source: 'rtmp://182.145.195.238:1935/hls/1194076936807170050', + // source: 'rtmp://182.145.195.238:1935/hls/1194076936807170050', cssLink: 'https://g.alicdn.com/de/prismplayer/2.8.2/skins/default/aliplayer-min.css', scriptSrc: 'https://g.alicdn.com/de/prismplayer/2.8.2/aliplayer-min.js' }, @@ -298,7 +303,11 @@ var staticRenderFns = [] }; }, mounted: function mounted() { - this.init(); + var _this = this; + + this.$nextTick(function () { + _this.init(); + }); }, methods: { /** @@ -306,14 +315,14 @@ var staticRenderFns = [] * 加载Alipayer的SDK */ init: function init() { - var _this = this; + var _this2 = this; var load = true; - var scriptTag = document.getElementById(scriptID); var linkID = 'aliplayer-min-css'; var scriptID = 'aliplayer-min-js'; var head = document.getElementsByTagName('head'); var html = document.getElementsByTagName('html'); + var scriptTag = document.getElementById(scriptID); if (!document.getElementById(linkID)) { var link = document.createElement('link'); @@ -331,7 +340,7 @@ var staticRenderFns = [] } scriptTag.addEventListener("load", function () { - _this.initPlayer(); + _this2.initPlayer(); load = false; }); @@ -346,7 +355,7 @@ var staticRenderFns = [] * @description SDK文档地址:https://help.aliyun.com/document_detail/125572.html?spm=a2c4g.11186623.6.1084.131d1c4cJT7o5Z */ initPlayer: function initPlayer() { - var _this2 = this; + var _this3 = this; if (typeof window.Aliplayer != 'undefined') { var options = this.options; @@ -357,15 +366,16 @@ var staticRenderFns = [] } } + this.config.id = this.id; this.player = new Aliplayer(this.config, function (player) { console.log('播放器创建好了。', player); }); var _loop = function _loop(ev) { - _this2.player.on(_this2.events[ev], function (e) { - console.log("object ".concat(_this2.events[ev]), e); + _this3.player.on(_this3.events[ev], function (e) { + console.log("object ".concat(_this3.events[ev]), e); - _this2.$emit(_this2.events[ev], e); + _this3.$emit(_this3.events[ev], e); }); }; diff --git a/lib/vue-aliplayer-v2.umd.min.js b/lib/vue-aliplayer-v2.umd.min.js index 3acbeb4..d4a7994 100644 --- a/lib/vue-aliplayer-v2.umd.min.js +++ b/lib/vue-aliplayer-v2.umd.min.js @@ -1,2 +1,2 @@ -(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue-aliplayer-v2"]=t():e["vue-aliplayer-v2"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="112a")}({"0614":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"0cc1":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"112a":function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("e67d"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("efce"),n("4634"),n("96dd"),n("ed8b");function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("7cfd");var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:e.config.id}})},c=[],a={name:"VueAliplayerV2",props:{options:{required:!1,type:[Object],default:function(){return null}}},data:function(){return{player:null,config:{id:"player-".concat(Date.parse(new Date)),width:"100%",autoplay:!0,isLive:!0,source:"rtmp://182.145.195.238:1935/hls/1194076936807170050",cssLink:"https://g.alicdn.com/de/prismplayer/2.8.2/skins/default/aliplayer-min.css",scriptSrc:"https://g.alicdn.com/de/prismplayer/2.8.2/aliplayer-min.js"},events:["ready","play","pause","canplay","playing","ended","liveStreamStop","onM3u8Retry","hideBar","showBar","waiting","timeupdate","snapshoted","requestFullScreen","cancelFullScreen","error","startSeek","completeSeek"]}},mounted:function(){this.init()},methods:{init:function(){var e=this,t=!0,n=document.getElementById(o),r="aliplayer-min-css",o="aliplayer-min-js",i=document.getElementsByTagName("head"),c=document.getElementsByTagName("html");if(!document.getElementById(r)){var a=document.createElement("link");a.href=this.config.cssLink,a.setAttribute("id",r),i[0].appendChild(a)}n||(n=document.createElement("script"),n.id=o,n.type="text/javascript",n.src=this.config.scriptSrc,c[0].appendChild(n)),n.addEventListener("load",(function(){e.initPlayer(),t=!1})),t||this.initPlayer()},initPlayer:function(){var e=this;if("undefined"!=typeof window.Aliplayer){var t=this.options;if(t)for(var n in t)this.config[n]=t[n];this.player=new Aliplayer(this.config,(function(e){console.log("播放器创建好了。",e)}));var r=function(t){e.player.on(e.events[t],(function(n){console.log("object ".concat(e.events[t]),n),e.$emit(e.events[t],n)}))};for(var o in this.events)r(o)}},getPlayer:function(){return this.player},play:function(){console.log("播放视频。"),this.player.play()},pause:function(){console.log("暂停视频"),this.player.pause()},replay:function(){console.log("重播视频"),this.player.replay()},seek:function(e){console.log("跳转到某个时刻进行播放,time为".concat(e,"秒。")),this.player.seek(e)},getCurrentTime:function(){return console.log("获取当前的播放时刻,返回的单位为".concat(this.player.getCurrentTime(),"秒。")),this.player.getCurrentTime()},getDuration:function(){return console.log("获取视频总时长,返回的单位为".concat(this.player.getDuration(),"秒。")),this.player.getDuration()},getVolume:function(){return console.log("获取当前的音量".concat(this.player.getVolume(),"。")),this.player.getVolume()},setVolume:function(e){console.log("设置音量,vol为".concat(e,"。")),this.player.setVolume(e)},loadByUrl:function(e,t){console.log("直接播放视频url".concat(e,",time为").concat(t,"。")),this.player.loadByUrl(e,t)},replayByVidAndPlayAuth:function(e,t){console.log("replayByVidAndPlayAuth vid".concat(e,",playauth为").concat(t,"。")),this.player.replayByVidAndPlayAuth(e,t)},replayByVidAndAuthInfo:function(e,t,n,r,o,i){console.log("replayByVidAndAuthInfo 参数顺序为:vid、accId、accSecret、stsToken、authInfo、domainRegion",e,t,n,r,o,i),this.player.replayByVidAndAuthInfo(e,t,n,r,o,i)},setPlayerSize:function(e,t){console.log("设置播放器大小 宽度:".concat(e,",高度:").concat(t)),this.player.setPlayerSize(e,t)},setSpeed:function(e){console.log("手动设置播放的倍速:".concat(e)),this.player.setSpeed(e)},setSanpshotProperties:function(e,t,n){console.log("设置截图参数:",e,t,n),this.player.setSanpshotProperties(e,t,n)},requestFullScreen:function(){console.log("播放器全屏,仅H5支持"),this.player.fullscreenService&&this.player.fullscreenService.requestFullScreen()},cancelFullScreen:function(){console.log("播放器全屏,仅H5支持"),this.player.fullscreenService&&this.player.fullscreenService.cancelFullScreen()},getIsFullScreen:function(){return console.log("获取播放器全屏状态,仅H5支持。",this.player.fullscreenService&&this.player.fullscreenService.getIsFullScreen()),this.player.fullscreenService&&this.player.fullscreenService.getIsFullScreen()},getStatus:function(){return console.log("获取播放器状态,包含的值",this.player.fullscreenService&&this.player.fullscreenService.getStatus()),this.player.fullscreenService&&this.player.fullscreenService.getStatus()},setLiveTimeRange:function(e,t){console.log("设置直播的开始时间:".concat(e,",结束时间:").concat(t,",开启直播时移功能时使用。")),this.player.liveShiftSerivce&&this.player.liveShiftSerivce.setLiveTimeRange(e,t)},setRotate:function(e){console.log("参数为旋转角度:".concat(e,"。")),this.player.setRotate(e)},getRotate:function(){return console.log("获取旋转角度:".concat(this.player.getRotate())),this.player.getRotate()},setImage:function(e){console.log("设置镜像:".concat(e,"。")),this.player.setImage(e)},dispose:function(){console.log("播放器销毁。"),this.player.dispose()},setCover:function(e){console.log("设置封面:".concat(e)),this.player.setCover(e)},setProgressMarkers:function(e){console.log("markers打点数据集合:".concat(e)),this.player.setProgressMarkers(e)},setPreviewTime:function(e){console.log("设置试看时间,单位为:".concat(e,"秒")),this.player.setPreviewTime(e)},getPreviewTime:function(){return console.log("获取试看时间:".concat(this.player.getPreviewTime())),this.player.getPreviewTime()},isPreview:function(){console.log("是否试看"),this.player.isPreview()}}},u=a;function s(e,t,n,r,o,i,c,a){var u,s="function"===typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),c?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},s._ssrRegister=u):o&&(u=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(s.functional){s._injectStyles=u;var l=s.render;s.render=function(e,t){return u.call(t),l(e,t)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:s}}var l=s(u,i,c,!1,null,null,null),f=l.exports;f.install=function(e){e.component(f.name,f)};var p=f;function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;tl)if(a=u[l++],a!=a)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},2498:function(e,t,n){var r=n("3f8b"),o=n("da27"),i=n("b8ea"),c=n("a6d5"),a=n("e85e"),u="prototype",s=function(e,t,n){var l,f,p,d,y=e&s.F,v=e&s.G,h=e&s.S,g=e&s.P,m=e&s.B,b=v?r:h?r[t]||(r[t]={}):(r[t]||{})[u],S=v?o:o[t]||(o[t]={}),w=S[u]||(S[u]={});for(l in v&&(n=t),n)f=!y&&b&&void 0!==b[l],p=(f?b:n)[l],d=m&&f?a(p,r):g&&"function"==typeof p?a(Function.call,p):p,b&&c(b,l,p,e&s.U),S[l]!=p&&i(S,l,d),g&&w[l]!=p&&(w[l]=p)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},"25ae":function(e,t,n){e.exports=!n("f9a5")&&!n("0cc1")((function(){return 7!=Object.defineProperty(n("6618")("div"),"a",{get:function(){return 7}}).a}))},"2ab1":function(e,t,n){var r=n("da0b");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},3038:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"3d87":function(e,t,n){var r=n("d3d8").f,o=n("549d"),i=n("1277")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},"3f8b":function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},4634:function(e,t,n){for(var r=n("96dd"),o=n("7d56"),i=n("a6d5"),c=n("3f8b"),a=n("b8ea"),u=n("e3b3"),s=n("1277"),l=s("iterator"),f=s("toStringTag"),p=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},y=o(d),v=0;v";t.style.display="none",n("17cb").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+c+"document.F=Object"+o+"/script"+c),e.close(),s=e.F;while(r--)delete s[u][i[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[u]=r(e),n=new a,a[u]=null,n[c]=e):n=s(),void 0===t?n:o(n,t)}},6618:function(e,t,n){var r=n("da0b"),o=n("3f8b").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"6cc2":function(e,t){e.exports=!1},"6fe0":function(e,t,n){e.exports=n("f341")("native-function-to-string",Function.toString)},"7afe":function(e,t,n){var r=n("549d"),o=n("6117"),i=n("1f9e")(!1),c=n("9947")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),u=0,s=[];for(n in a)n!=c&&r(a,n)&&s.push(n);while(t.length>u)r(a,n=t[u++])&&(~i(s,n)||s.push(n));return s}},"7cfd":function(e,t,n){var r=n("d3d8").f,o=Function.prototype,i=/^\s*function ([^ (]*)/,c="name";c in o||n("f9a5")&&r(o,c,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},"7d56":function(e,t,n){var r=n("7afe"),o=n("d93f");e.exports=Object.keys||function(e){return r(e,o)}},8451:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},8868:function(e,t,n){var r=n("2498"),o=n("da27"),i=n("0cc1");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],c={};c[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",c)}},8941:function(e,t,n){var r=n("a6ad"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},"8cac":function(e,t,n){var r=n("da0b");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"8d69":function(e,t,n){var r=n("d3d8"),o=n("8cac"),i=n("7d56");e.exports=n("f9a5")?Object.defineProperties:function(e,t){o(e);var n,c=i(t),a=c.length,u=0;while(a>u)r.f(e,n=c[u++],t[n]);return e}},"96dd":function(e,t,n){"use strict";var r=n("ab19"),o=n("c8e9"),i=n("e3b3"),c=n("6117");e.exports=n("4aef")(Array,"Array",(function(e,t){this._t=c(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},9947:function(e,t,n){var r=n("f341")("keys"),o=n("4d2c");e.exports=function(e){return r[e]||(r[e]=o(e))}},9952:function(e,t,n){var r=n("6077");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"9d61":function(e,t){t.f=Object.getOwnPropertySymbols},a6ad:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},a6d5:function(e,t,n){var r=n("3f8b"),o=n("b8ea"),i=n("549d"),c=n("4d2c")("src"),a=n("6fe0"),u="toString",s=(""+a).split(u);n("da27").inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(u&&(i(n,c)||o(n,c,e[t]?""+e[t]:s.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[c]||a.call(this)}))},a9cf:function(e,t,n){var r=n("3038");e.exports=function(e){return Object(r(e))}},ab19:function(e,t,n){var r=n("1277")("unscopables"),o=Array.prototype;void 0==o[r]&&n("b8ea")(o,r,{}),e.exports=function(e){o[r][e]=!0}},b8ea:function(e,t,n){var r=n("d3d8"),o=n("0614");e.exports=n("f9a5")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},c264:function(e,t,n){"use strict";var r=n("65c3"),o=n("0614"),i=n("3d87"),c={};n("b8ea")(c,n("1277")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(c,{next:o(1,n)}),i(e,t+" Iterator")}},c3a9:function(e,t,n){var r=n("a6ad"),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},c864:function(e,t){t.f={}.propertyIsEnumerable},c8e9:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},cb2e:function(e,t,n){var r=n("7afe"),o=n("d93f").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},d15b:function(e,t,n){var r=n("549d"),o=n("a9cf"),i=n("9947")("IE_PROTO"),c=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},d3d8:function(e,t,n){var r=n("8cac"),o=n("25ae"),i=n("2ab1"),c=Object.defineProperty;t.f=n("f9a5")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return c(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},d93f:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},da0b:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},da27:function(e,t){var n=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=n)},e323:function(e,t,n){"use strict";var r=n("d3d8"),o=n("0614");e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},e3b3:function(e,t){e.exports={}},e493:function(e,t,n){var r=n("c864"),o=n("0614"),i=n("6117"),c=n("2ab1"),a=n("549d"),u=n("25ae"),s=Object.getOwnPropertyDescriptor;t.f=n("f9a5")?s:function(e,t){if(e=i(e),t=c(t,!0),u)try{return s(e,t)}catch(n){}if(a(e,t))return o(!r.f.call(e,t),e[t])}},e67d:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},e85e:function(e,t,n){var r=n("8451");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},ed8b:function(e,t,n){var r=n("a9cf"),o=n("7d56");n("8868")("keys",(function(){return function(e){return o(r(e))}}))},efce:function(e,t,n){var r=n("2498"),o=n("f36d"),i=n("6117"),c=n("e493"),a=n("e323");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=i(e),u=c.f,s=o(r),l={},f=0;while(s.length>f)n=u(r,t=s[f++]),void 0!==n&&a(l,t,n);return l}})},f341:function(e,t,n){var r=n("da27"),o=n("3f8b"),i="__core-js_shared__",c=o[i]||(o[i]={});(e.exports=function(e,t){return c[e]||(c[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("6cc2")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},f36d:function(e,t,n){var r=n("cb2e"),o=n("9d61"),i=n("8cac"),c=n("3f8b").Reflect;e.exports=c&&c.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},f9a5:function(e,t,n){e.exports=!n("0cc1")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))}})})); +(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue-aliplayer-v2"]=t():e["vue-aliplayer-v2"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="112a")}({"0614":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"0cc1":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"112a":function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("e67d"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("efce"),n("4634"),n("96dd"),n("ed8b");function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("7cfd");var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:e.id}})},c=[],a={name:"VueAliplayerV2",props:{options:{required:!1,type:[Object],default:function(){return null}},id:{required:!1,type:[String],default:"player-".concat(Date.parse(new Date))}},data:function(){return{player:null,config:{id:null,width:"100%",autoplay:!0,cssLink:"https://g.alicdn.com/de/prismplayer/2.8.2/skins/default/aliplayer-min.css",scriptSrc:"https://g.alicdn.com/de/prismplayer/2.8.2/aliplayer-min.js"},events:["ready","play","pause","canplay","playing","ended","liveStreamStop","onM3u8Retry","hideBar","showBar","waiting","timeupdate","snapshoted","requestFullScreen","cancelFullScreen","error","startSeek","completeSeek"]}},mounted:function(){var e=this;this.$nextTick((function(){e.init()}))},methods:{init:function(){var e=this,t=!0,n="aliplayer-min-css",r="aliplayer-min-js",o=document.getElementsByTagName("head"),i=document.getElementsByTagName("html"),c=document.getElementById(r);if(!document.getElementById(n)){var a=document.createElement("link");a.href=this.config.cssLink,a.setAttribute("id",n),o[0].appendChild(a)}c||(c=document.createElement("script"),c.id=r,c.type="text/javascript",c.src=this.config.scriptSrc,i[0].appendChild(c)),c.addEventListener("load",(function(){e.initPlayer(),t=!1})),t||this.initPlayer()},initPlayer:function(){var e=this;if("undefined"!=typeof window.Aliplayer){var t=this.options;if(t)for(var n in t)this.config[n]=t[n];this.config.id=this.id,this.player=new Aliplayer(this.config,(function(e){console.log("播放器创建好了。",e)}));var r=function(t){e.player.on(e.events[t],(function(n){console.log("object ".concat(e.events[t]),n),e.$emit(e.events[t],n)}))};for(var o in this.events)r(o)}},getPlayer:function(){return this.player},play:function(){console.log("播放视频。"),this.player.play()},pause:function(){console.log("暂停视频"),this.player.pause()},replay:function(){console.log("重播视频"),this.player.replay()},seek:function(e){console.log("跳转到某个时刻进行播放,time为".concat(e,"秒。")),this.player.seek(e)},getCurrentTime:function(){return console.log("获取当前的播放时刻,返回的单位为".concat(this.player.getCurrentTime(),"秒。")),this.player.getCurrentTime()},getDuration:function(){return console.log("获取视频总时长,返回的单位为".concat(this.player.getDuration(),"秒。")),this.player.getDuration()},getVolume:function(){return console.log("获取当前的音量".concat(this.player.getVolume(),"。")),this.player.getVolume()},setVolume:function(e){console.log("设置音量,vol为".concat(e,"。")),this.player.setVolume(e)},loadByUrl:function(e,t){console.log("直接播放视频url".concat(e,",time为").concat(t,"。")),this.player.loadByUrl(e,t)},replayByVidAndPlayAuth:function(e,t){console.log("replayByVidAndPlayAuth vid".concat(e,",playauth为").concat(t,"。")),this.player.replayByVidAndPlayAuth(e,t)},replayByVidAndAuthInfo:function(e,t,n,r,o,i){console.log("replayByVidAndAuthInfo 参数顺序为:vid、accId、accSecret、stsToken、authInfo、domainRegion",e,t,n,r,o,i),this.player.replayByVidAndAuthInfo(e,t,n,r,o,i)},setPlayerSize:function(e,t){console.log("设置播放器大小 宽度:".concat(e,",高度:").concat(t)),this.player.setPlayerSize(e,t)},setSpeed:function(e){console.log("手动设置播放的倍速:".concat(e)),this.player.setSpeed(e)},setSanpshotProperties:function(e,t,n){console.log("设置截图参数:",e,t,n),this.player.setSanpshotProperties(e,t,n)},requestFullScreen:function(){console.log("播放器全屏,仅H5支持"),this.player.fullscreenService&&this.player.fullscreenService.requestFullScreen()},cancelFullScreen:function(){console.log("播放器全屏,仅H5支持"),this.player.fullscreenService&&this.player.fullscreenService.cancelFullScreen()},getIsFullScreen:function(){return console.log("获取播放器全屏状态,仅H5支持。",this.player.fullscreenService&&this.player.fullscreenService.getIsFullScreen()),this.player.fullscreenService&&this.player.fullscreenService.getIsFullScreen()},getStatus:function(){return console.log("获取播放器状态,包含的值",this.player.fullscreenService&&this.player.fullscreenService.getStatus()),this.player.fullscreenService&&this.player.fullscreenService.getStatus()},setLiveTimeRange:function(e,t){console.log("设置直播的开始时间:".concat(e,",结束时间:").concat(t,",开启直播时移功能时使用。")),this.player.liveShiftSerivce&&this.player.liveShiftSerivce.setLiveTimeRange(e,t)},setRotate:function(e){console.log("参数为旋转角度:".concat(e,"。")),this.player.setRotate(e)},getRotate:function(){return console.log("获取旋转角度:".concat(this.player.getRotate())),this.player.getRotate()},setImage:function(e){console.log("设置镜像:".concat(e,"。")),this.player.setImage(e)},dispose:function(){console.log("播放器销毁。"),this.player.dispose()},setCover:function(e){console.log("设置封面:".concat(e)),this.player.setCover(e)},setProgressMarkers:function(e){console.log("markers打点数据集合:".concat(e)),this.player.setProgressMarkers(e)},setPreviewTime:function(e){console.log("设置试看时间,单位为:".concat(e,"秒")),this.player.setPreviewTime(e)},getPreviewTime:function(){return console.log("获取试看时间:".concat(this.player.getPreviewTime())),this.player.getPreviewTime()},isPreview:function(){console.log("是否试看"),this.player.isPreview()}}},u=a;function s(e,t,n,r,o,i,c,a){var u,s="function"===typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),c?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},s._ssrRegister=u):o&&(u=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(s.functional){s._injectStyles=u;var l=s.render;s.render=function(e,t){return u.call(t),l(e,t)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:s}}var l=s(u,i,c,!1,null,null,null),f=l.exports;f.install=function(e){e.component(f.name,f)};var p=f;function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;tl)if(a=u[l++],a!=a)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},2498:function(e,t,n){var r=n("3f8b"),o=n("da27"),i=n("b8ea"),c=n("a6d5"),a=n("e85e"),u="prototype",s=function(e,t,n){var l,f,p,d,y=e&s.F,v=e&s.G,h=e&s.S,g=e&s.P,m=e&s.B,b=v?r:h?r[t]||(r[t]={}):(r[t]||{})[u],S=v?o:o[t]||(o[t]={}),x=S[u]||(S[u]={});for(l in v&&(n=t),n)f=!y&&b&&void 0!==b[l],p=(f?b:n)[l],d=m&&f?a(p,r):g&&"function"==typeof p?a(Function.call,p):p,b&&c(b,l,p,e&s.U),S[l]!=p&&i(S,l,d),g&&x[l]!=p&&(x[l]=p)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},"25ae":function(e,t,n){e.exports=!n("f9a5")&&!n("0cc1")((function(){return 7!=Object.defineProperty(n("6618")("div"),"a",{get:function(){return 7}}).a}))},"2ab1":function(e,t,n){var r=n("da0b");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},3038:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"3d87":function(e,t,n){var r=n("d3d8").f,o=n("549d"),i=n("1277")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},"3f8b":function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},4634:function(e,t,n){for(var r=n("96dd"),o=n("7d56"),i=n("a6d5"),c=n("3f8b"),a=n("b8ea"),u=n("e3b3"),s=n("1277"),l=s("iterator"),f=s("toStringTag"),p=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},y=o(d),v=0;v";t.style.display="none",n("17cb").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+c+"document.F=Object"+o+"/script"+c),e.close(),s=e.F;while(r--)delete s[u][i[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[u]=r(e),n=new a,a[u]=null,n[c]=e):n=s(),void 0===t?n:o(n,t)}},6618:function(e,t,n){var r=n("da0b"),o=n("3f8b").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"6cc2":function(e,t){e.exports=!1},"6fe0":function(e,t,n){e.exports=n("f341")("native-function-to-string",Function.toString)},"7afe":function(e,t,n){var r=n("549d"),o=n("6117"),i=n("1f9e")(!1),c=n("9947")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),u=0,s=[];for(n in a)n!=c&&r(a,n)&&s.push(n);while(t.length>u)r(a,n=t[u++])&&(~i(s,n)||s.push(n));return s}},"7cfd":function(e,t,n){var r=n("d3d8").f,o=Function.prototype,i=/^\s*function ([^ (]*)/,c="name";c in o||n("f9a5")&&r(o,c,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},"7d56":function(e,t,n){var r=n("7afe"),o=n("d93f");e.exports=Object.keys||function(e){return r(e,o)}},8451:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},8868:function(e,t,n){var r=n("2498"),o=n("da27"),i=n("0cc1");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],c={};c[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",c)}},8941:function(e,t,n){var r=n("a6ad"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},"8cac":function(e,t,n){var r=n("da0b");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"8d69":function(e,t,n){var r=n("d3d8"),o=n("8cac"),i=n("7d56");e.exports=n("f9a5")?Object.defineProperties:function(e,t){o(e);var n,c=i(t),a=c.length,u=0;while(a>u)r.f(e,n=c[u++],t[n]);return e}},"96dd":function(e,t,n){"use strict";var r=n("ab19"),o=n("c8e9"),i=n("e3b3"),c=n("6117");e.exports=n("4aef")(Array,"Array",(function(e,t){this._t=c(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},9947:function(e,t,n){var r=n("f341")("keys"),o=n("4d2c");e.exports=function(e){return r[e]||(r[e]=o(e))}},9952:function(e,t,n){var r=n("6077");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"9d61":function(e,t){t.f=Object.getOwnPropertySymbols},a6ad:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},a6d5:function(e,t,n){var r=n("3f8b"),o=n("b8ea"),i=n("549d"),c=n("4d2c")("src"),a=n("6fe0"),u="toString",s=(""+a).split(u);n("da27").inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(u&&(i(n,c)||o(n,c,e[t]?""+e[t]:s.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[c]||a.call(this)}))},a9cf:function(e,t,n){var r=n("3038");e.exports=function(e){return Object(r(e))}},ab19:function(e,t,n){var r=n("1277")("unscopables"),o=Array.prototype;void 0==o[r]&&n("b8ea")(o,r,{}),e.exports=function(e){o[r][e]=!0}},b8ea:function(e,t,n){var r=n("d3d8"),o=n("0614");e.exports=n("f9a5")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},c264:function(e,t,n){"use strict";var r=n("65c3"),o=n("0614"),i=n("3d87"),c={};n("b8ea")(c,n("1277")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(c,{next:o(1,n)}),i(e,t+" Iterator")}},c3a9:function(e,t,n){var r=n("a6ad"),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},c864:function(e,t){t.f={}.propertyIsEnumerable},c8e9:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},cb2e:function(e,t,n){var r=n("7afe"),o=n("d93f").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},d15b:function(e,t,n){var r=n("549d"),o=n("a9cf"),i=n("9947")("IE_PROTO"),c=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},d3d8:function(e,t,n){var r=n("8cac"),o=n("25ae"),i=n("2ab1"),c=Object.defineProperty;t.f=n("f9a5")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return c(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},d93f:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},da0b:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},da27:function(e,t){var n=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=n)},e323:function(e,t,n){"use strict";var r=n("d3d8"),o=n("0614");e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},e3b3:function(e,t){e.exports={}},e493:function(e,t,n){var r=n("c864"),o=n("0614"),i=n("6117"),c=n("2ab1"),a=n("549d"),u=n("25ae"),s=Object.getOwnPropertyDescriptor;t.f=n("f9a5")?s:function(e,t){if(e=i(e),t=c(t,!0),u)try{return s(e,t)}catch(n){}if(a(e,t))return o(!r.f.call(e,t),e[t])}},e67d:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},e85e:function(e,t,n){var r=n("8451");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},ed8b:function(e,t,n){var r=n("a9cf"),o=n("7d56");n("8868")("keys",(function(){return function(e){return o(r(e))}}))},efce:function(e,t,n){var r=n("2498"),o=n("f36d"),i=n("6117"),c=n("e493"),a=n("e323");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=i(e),u=c.f,s=o(r),l={},f=0;while(s.length>f)n=u(r,t=s[f++]),void 0!==n&&a(l,t,n);return l}})},f341:function(e,t,n){var r=n("da27"),o=n("3f8b"),i="__core-js_shared__",c=o[i]||(o[i]={});(e.exports=function(e,t){return c[e]||(c[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("6cc2")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},f36d:function(e,t,n){var r=n("cb2e"),o=n("9d61"),i=n("8cac"),c=n("3f8b").Reflect;e.exports=c&&c.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},f9a5:function(e,t,n){e.exports=!n("0cc1")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))}})})); //# sourceMappingURL=vue-aliplayer-v2.umd.min.js.map \ No newline at end of file diff --git a/package.json b/package.json index 130d60c..705e9cc 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "vue-aliplayer-v2", - "version": "1.0.1", + "version": "1.0.3", "author": "yxs", - "description": "青出于蓝而胜于蓝,感谢每一位开源的开发者. 这是一个基于Alipayer 开发并封装成vue组件的播放器.", + "description": "感谢每一位开源的开发者. 这是一个基于Alipayer 开发并封装成vue组件的播放器.", "main":"lib/vue-aliplayer-v2.umd.min.js", "private": false, "license": "MIT", diff --git a/packages/AliplayerV2/src/main.vue b/packages/AliplayerV2/src/main.vue index 3589cd1..dbaf021 100644 --- a/packages/AliplayerV2/src/main.vue +++ b/packages/AliplayerV2/src/main.vue @@ -1,5 +1,5 @@