This commit is contained in:
zhouliujun 2019-11-14 13:36:19 +08:00
parent 6cc0f03b1f
commit c67edb75a8
7 changed files with 39 additions and 33 deletions

2
dist/index.html vendored
View File

@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/vue-sign-canvas/favicon.ico><title>vue-aliplayer-v2</title><link href=/vue-sign-canvas/css/index.30521333.css rel=preload as=style><link href=/vue-sign-canvas/js/chunk-vendors.3a0a1b08.js rel=preload as=script><link href=/vue-sign-canvas/js/index.406eb953.js rel=preload as=script><link href=/vue-sign-canvas/css/index.30521333.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-aliplayer-v2 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vue-sign-canvas/js/chunk-vendors.3a0a1b08.js></script><script src=/vue-sign-canvas/js/index.406eb953.js></script></body></html> <!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/vue-sign-canvas/favicon.ico><title>vue-aliplayer-v2</title><link href=/vue-sign-canvas/css/index.30521333.css rel=preload as=style><link href=/vue-sign-canvas/js/chunk-vendors.3a0a1b08.js rel=preload as=script><link href=/vue-sign-canvas/js/index.90a85eec.js rel=preload as=script><link href=/vue-sign-canvas/css/index.30521333.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-aliplayer-v2 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vue-sign-canvas/js/chunk-vendors.3a0a1b08.js></script><script src=/vue-sign-canvas/js/index.90a85eec.js></script></body></html>

File diff suppressed because one or more lines are too long

2
dist/js/index.90a85eec.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -127,12 +127,12 @@ if (typeof window !== 'undefined') {
// EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/es6.function.name.js // EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/es6.function.name.js
var es6_function_name = __webpack_require__("7cfd"); 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=4983dfe8& // 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=0fd39c20&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":_vm.id}})} 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 = [] var staticRenderFns = []
// CONCATENATED MODULE: ./packages/AliplayerV2/src/main.vue?vue&type=template&id=4983dfe8& // CONCATENATED MODULE: ./packages/AliplayerV2/src/main.vue?vue&type=template&id=0fd39c20&
// 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& // 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&
// //
@ -251,25 +251,28 @@ var staticRenderFns = []
'completeSeek'] 'completeSeek']
}; };
}, },
// mounted () { mounted: function mounted() {
// this.$nextTick(()=>{
// this.init();
// });
// },
updated: function updated() {
var _this = this; var _this = this;
this.$nextTick(function () { this.$nextTick(function () {
_this.init(); _this.init();
}); });
}, },
updated: function updated() {
var _this2 = this;
//重载播放器
this.$nextTick(function () {
_this2.init();
});
},
methods: { methods: {
/** /**
* 创建script和css * 创建script和css
* 加载Alipayer的SDK * 加载Alipayer的SDK
*/ */
init: function init() { init: function init() {
var _this2 = this; var _this3 = this;
var load = true; var load = true;
var linkID = 'aliplayer-min-css'; var linkID = 'aliplayer-min-css';
@ -294,7 +297,7 @@ var staticRenderFns = []
} }
scriptTag.addEventListener("load", function () { scriptTag.addEventListener("load", function () {
_this2.initPlayer(); _this3.initPlayer();
load = false; load = false;
}); });
@ -309,7 +312,7 @@ var staticRenderFns = []
* @description SDK文档地址:https://help.aliyun.com/document_detail/125572.html?spm=a2c4g.11186623.6.1084.131d1c4cJT7o5Z * @description SDK文档地址:https://help.aliyun.com/document_detail/125572.html?spm=a2c4g.11186623.6.1084.131d1c4cJT7o5Z
*/ */
initPlayer: function initPlayer() { initPlayer: function initPlayer() {
var _this3 = this; var _this4 = this;
if (typeof window.Aliplayer != 'undefined') { if (typeof window.Aliplayer != 'undefined') {
var options = this.options; var options = this.options;
@ -326,10 +329,10 @@ var staticRenderFns = []
}); });
var _loop = function _loop(ev) { var _loop = function _loop(ev) {
_this3.player.on(_this3.events[ev], function (e) { _this4.player.on(_this4.events[ev], function (e) {
console.log("object ".concat(_this3.events[ev]), e); console.log("object ".concat(_this4.events[ev]), e);
_this3.$emit(_this3.events[ev], e); _this4.$emit(_this4.events[ev], e);
}); });
}; };

View File

@ -136,12 +136,12 @@ if (typeof window !== 'undefined') {
// EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/es6.function.name.js // EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/es6.function.name.js
var es6_function_name = __webpack_require__("7cfd"); 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=4983dfe8& // 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=0fd39c20&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":_vm.id}})} 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 = [] var staticRenderFns = []
// CONCATENATED MODULE: ./packages/AliplayerV2/src/main.vue?vue&type=template&id=4983dfe8& // CONCATENATED MODULE: ./packages/AliplayerV2/src/main.vue?vue&type=template&id=0fd39c20&
// 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& // 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&
// //
@ -260,25 +260,28 @@ var staticRenderFns = []
'completeSeek'] 'completeSeek']
}; };
}, },
// mounted () { mounted: function mounted() {
// this.$nextTick(()=>{
// this.init();
// });
// },
updated: function updated() {
var _this = this; var _this = this;
this.$nextTick(function () { this.$nextTick(function () {
_this.init(); _this.init();
}); });
}, },
updated: function updated() {
var _this2 = this;
//重载播放器
this.$nextTick(function () {
_this2.init();
});
},
methods: { methods: {
/** /**
* 创建script和css * 创建script和css
* 加载Alipayer的SDK * 加载Alipayer的SDK
*/ */
init: function init() { init: function init() {
var _this2 = this; var _this3 = this;
var load = true; var load = true;
var linkID = 'aliplayer-min-css'; var linkID = 'aliplayer-min-css';
@ -303,7 +306,7 @@ var staticRenderFns = []
} }
scriptTag.addEventListener("load", function () { scriptTag.addEventListener("load", function () {
_this2.initPlayer(); _this3.initPlayer();
load = false; load = false;
}); });
@ -318,7 +321,7 @@ var staticRenderFns = []
* @description SDK文档地址:https://help.aliyun.com/document_detail/125572.html?spm=a2c4g.11186623.6.1084.131d1c4cJT7o5Z * @description SDK文档地址:https://help.aliyun.com/document_detail/125572.html?spm=a2c4g.11186623.6.1084.131d1c4cJT7o5Z
*/ */
initPlayer: function initPlayer() { initPlayer: function initPlayer() {
var _this3 = this; var _this4 = this;
if (typeof window.Aliplayer != 'undefined') { if (typeof window.Aliplayer != 'undefined') {
var options = this.options; var options = this.options;
@ -335,10 +338,10 @@ var staticRenderFns = []
}); });
var _loop = function _loop(ev) { var _loop = function _loop(ev) {
_this3.player.on(_this3.events[ev], function (e) { _this4.player.on(_this4.events[ev], function (e) {
console.log("object ".concat(_this3.events[ev]), e); console.log("object ".concat(_this4.events[ev]), e);
_this3.$emit(_this3.events[ev], e); _this4.$emit(_this4.events[ev], e);
}); });
}; };

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "vue-aliplayer-v2", "name": "vue-aliplayer-v2",
"version": "1.0.6", "version": "1.0.7",
"author": "yxs", "author": "yxs",
"description": "感谢每一位开源的开发者. 这是一个基于Alipayer 开发并封装成vue组件的播放器.", "description": "感谢每一位开源的开发者. 这是一个基于Alipayer 开发并封装成vue组件的播放器.",
"main":"lib/vue-aliplayer-v2.umd.min.js", "main":"lib/vue-aliplayer-v2.umd.min.js",