mirror of
https://github.com/langyuxiansheng/vue-aliplayer-v2.git
synced 2025-04-05 19:41:39 +08:00
更新lib
This commit is contained in:
parent
023de1ad31
commit
361f56b518
@ -142,18 +142,35 @@ 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/index.vue?vue&type=template&id=3905f692&
|
// 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/index.vue?vue&type=template&id=54014060&
|
||||||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":_vm.playerId}})}
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":_vm.playerId}})}
|
||||||
var staticRenderFns = []
|
var staticRenderFns = []
|
||||||
|
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./packages/AliplayerV2/index.vue?vue&type=template&id=3905f692&
|
// CONCATENATED MODULE: ./packages/AliplayerV2/index.vue?vue&type=template&id=54014060&
|
||||||
|
|
||||||
|
// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.7.2@@babel/runtime/helpers/esm/typeof.js
|
||||||
|
function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
|
||||||
|
|
||||||
|
function _typeof(obj) {
|
||||||
|
if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
|
||||||
|
_typeof = function _typeof(obj) {
|
||||||
|
return _typeof2(obj);
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
_typeof = function _typeof(obj) {
|
||||||
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return _typeof(obj);
|
||||||
|
}
|
||||||
// EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/es6.regexp.to-string.js
|
// EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/es6.regexp.to-string.js
|
||||||
var es6_regexp_to_string = __webpack_require__("cc1d");
|
var es6_regexp_to_string = __webpack_require__("cc1d");
|
||||||
|
|
||||||
// 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/index.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/index.vue?vue&type=script&lang=js&
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
@ -178,13 +195,13 @@ var es6_regexp_to_string = __webpack_require__("cc1d");
|
|||||||
//css版本源
|
//css版本源
|
||||||
required: false,
|
required: false,
|
||||||
type: [String],
|
type: [String],
|
||||||
default: "https://g.alicdn.com/de/prismplayer/2.9.1/skins/default/aliplayer-min.css"
|
default: "https://g.alicdn.com/de/prismplayer/2.9.3/skins/default/aliplayer-min.css"
|
||||||
},
|
},
|
||||||
scriptSrc: {
|
scriptSrc: {
|
||||||
//js版本源
|
//js版本源
|
||||||
required: false,
|
required: false,
|
||||||
type: [String],
|
type: [String],
|
||||||
default: "https://g.alicdn.com/de/prismplayer/2.9.1/aliplayer-min.js"
|
default: "https://g.alicdn.com/de/prismplayer/2.9.3/aliplayer-min.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data: function data() {
|
data: function data() {
|
||||||
@ -196,7 +213,9 @@ var es6_regexp_to_string = __webpack_require__("cc1d");
|
|||||||
id: null,
|
id: null,
|
||||||
//播放器的ID
|
//播放器的ID
|
||||||
width: '100%',
|
width: '100%',
|
||||||
autoplay: true // isLive: true,
|
autoplay: true,
|
||||||
|
skinLayout: false,
|
||||||
|
progressMarkers: false // isLive: true,
|
||||||
//支持播放地址播放,此播放优先级最高
|
//支持播放地址播放,此播放优先级最高
|
||||||
// source: 'rtmp://182.145.195.238:1935/hls/1194076936807170050',
|
// source: 'rtmp://182.145.195.238:1935/hls/1194076936807170050',
|
||||||
|
|
||||||
@ -362,7 +381,7 @@ var es6_regexp_to_string = __webpack_require__("cc1d");
|
|||||||
var _this4 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
if (typeof window.Aliplayer != 'undefined') {
|
if (typeof window.Aliplayer != 'undefined') {
|
||||||
var options = this.options;
|
var options = this.deepCloneObject(this.options);
|
||||||
|
|
||||||
if (options) {
|
if (options) {
|
||||||
for (var key in options) {
|
for (var key in options) {
|
||||||
@ -666,6 +685,30 @@ var es6_regexp_to_string = __webpack_require__("cc1d");
|
|||||||
*/
|
*/
|
||||||
off: function off(ev, handle) {
|
off: function off(ev, handle) {
|
||||||
this.player && this.player.off(ev, handle);
|
this.player && this.player.off(ev, handle);
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 深度拷贝
|
||||||
|
* @param {*} obj
|
||||||
|
*/
|
||||||
|
deepCloneObject: function deepCloneObject(obj) {
|
||||||
|
var objClone = Array.isArray(obj) ? [] : {};
|
||||||
|
|
||||||
|
if (obj && _typeof(obj) === 'object') {
|
||||||
|
for (var key in obj) {
|
||||||
|
if (obj.hasOwnProperty(key)) {
|
||||||
|
//判断ojb子元素是否为对象,如果是,递归复制
|
||||||
|
if (obj[key] && _typeof(obj[key]) === 'object') {
|
||||||
|
objClone[key] = this.deepCloneObject(obj[key]);
|
||||||
|
} else {
|
||||||
|
//如果不是,简单复制
|
||||||
|
objClone[key] = obj[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return objClone;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy: function beforeDestroy() {
|
beforeDestroy: function beforeDestroy() {
|
||||||
|
@ -151,18 +151,35 @@ 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/index.vue?vue&type=template&id=3905f692&
|
// 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/index.vue?vue&type=template&id=54014060&
|
||||||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":_vm.playerId}})}
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":_vm.playerId}})}
|
||||||
var staticRenderFns = []
|
var staticRenderFns = []
|
||||||
|
|
||||||
|
|
||||||
// CONCATENATED MODULE: ./packages/AliplayerV2/index.vue?vue&type=template&id=3905f692&
|
// CONCATENATED MODULE: ./packages/AliplayerV2/index.vue?vue&type=template&id=54014060&
|
||||||
|
|
||||||
|
// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.7.2@@babel/runtime/helpers/esm/typeof.js
|
||||||
|
function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
|
||||||
|
|
||||||
|
function _typeof(obj) {
|
||||||
|
if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
|
||||||
|
_typeof = function _typeof(obj) {
|
||||||
|
return _typeof2(obj);
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
_typeof = function _typeof(obj) {
|
||||||
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return _typeof(obj);
|
||||||
|
}
|
||||||
// EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/es6.regexp.to-string.js
|
// EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/es6.regexp.to-string.js
|
||||||
var es6_regexp_to_string = __webpack_require__("cc1d");
|
var es6_regexp_to_string = __webpack_require__("cc1d");
|
||||||
|
|
||||||
// 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/index.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/index.vue?vue&type=script&lang=js&
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
@ -187,13 +204,13 @@ var es6_regexp_to_string = __webpack_require__("cc1d");
|
|||||||
//css版本源
|
//css版本源
|
||||||
required: false,
|
required: false,
|
||||||
type: [String],
|
type: [String],
|
||||||
default: "https://g.alicdn.com/de/prismplayer/2.9.1/skins/default/aliplayer-min.css"
|
default: "https://g.alicdn.com/de/prismplayer/2.9.3/skins/default/aliplayer-min.css"
|
||||||
},
|
},
|
||||||
scriptSrc: {
|
scriptSrc: {
|
||||||
//js版本源
|
//js版本源
|
||||||
required: false,
|
required: false,
|
||||||
type: [String],
|
type: [String],
|
||||||
default: "https://g.alicdn.com/de/prismplayer/2.9.1/aliplayer-min.js"
|
default: "https://g.alicdn.com/de/prismplayer/2.9.3/aliplayer-min.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data: function data() {
|
data: function data() {
|
||||||
@ -205,7 +222,9 @@ var es6_regexp_to_string = __webpack_require__("cc1d");
|
|||||||
id: null,
|
id: null,
|
||||||
//播放器的ID
|
//播放器的ID
|
||||||
width: '100%',
|
width: '100%',
|
||||||
autoplay: true // isLive: true,
|
autoplay: true,
|
||||||
|
skinLayout: false,
|
||||||
|
progressMarkers: false // isLive: true,
|
||||||
//支持播放地址播放,此播放优先级最高
|
//支持播放地址播放,此播放优先级最高
|
||||||
// source: 'rtmp://182.145.195.238:1935/hls/1194076936807170050',
|
// source: 'rtmp://182.145.195.238:1935/hls/1194076936807170050',
|
||||||
|
|
||||||
@ -371,7 +390,7 @@ var es6_regexp_to_string = __webpack_require__("cc1d");
|
|||||||
var _this4 = this;
|
var _this4 = this;
|
||||||
|
|
||||||
if (typeof window.Aliplayer != 'undefined') {
|
if (typeof window.Aliplayer != 'undefined') {
|
||||||
var options = this.options;
|
var options = this.deepCloneObject(this.options);
|
||||||
|
|
||||||
if (options) {
|
if (options) {
|
||||||
for (var key in options) {
|
for (var key in options) {
|
||||||
@ -675,6 +694,30 @@ var es6_regexp_to_string = __webpack_require__("cc1d");
|
|||||||
*/
|
*/
|
||||||
off: function off(ev, handle) {
|
off: function off(ev, handle) {
|
||||||
this.player && this.player.off(ev, handle);
|
this.player && this.player.off(ev, handle);
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 深度拷贝
|
||||||
|
* @param {*} obj
|
||||||
|
*/
|
||||||
|
deepCloneObject: function deepCloneObject(obj) {
|
||||||
|
var objClone = Array.isArray(obj) ? [] : {};
|
||||||
|
|
||||||
|
if (obj && _typeof(obj) === 'object') {
|
||||||
|
for (var key in obj) {
|
||||||
|
if (obj.hasOwnProperty(key)) {
|
||||||
|
//判断ojb子元素是否为对象,如果是,递归复制
|
||||||
|
if (obj[key] && _typeof(obj[key]) === 'object') {
|
||||||
|
objClone[key] = this.deepCloneObject(obj[key]);
|
||||||
|
} else {
|
||||||
|
//如果不是,简单复制
|
||||||
|
objClone[key] = obj[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return objClone;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy: function beforeDestroy() {
|
beforeDestroy: function beforeDestroy() {
|
||||||
|
2
lib/vue-aliplayer-v2.umd.min.js
vendored
2
lib/vue-aliplayer-v2.umd.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user