From 31441d777338753c40457ce5dd08bdd23577084e Mon Sep 17 00:00:00 2001
From: zhouliujun <1096432931@qq.com>
Date: Thu, 12 May 2022 14:20:44 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?=
=?UTF-8?q?=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 12 ++-
examples/App.vue | 46 +++++------
package.json | 2 +-
packages/AliplayerV2/index.vue | 141 ++++++++++++++++-----------------
4 files changed, 102 insertions(+), 99 deletions(-)
diff --git a/README.md b/README.md
index 34809b0..55167e2 100644
--- a/README.md
+++ b/README.md
@@ -219,6 +219,13 @@ components: {
```javascript
props:{
+
+ forbidFastForward: { //禁止拖拽快进
+ required: false,
+ type: [Boolean],
+ default: false
+ },
+
options: { //配置项 (options.source 不支持动态切换,需要动态切换请直接使用source)
required: false,
type: [Object],
@@ -455,10 +462,11 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
## 更新日志
-> v1.3.0
+> v1.3.0 修复部分已知bug,增加forbidFastForward 属性,感谢 "william-xue"网友的功能提交.
-- sdk 版本更新,默认 SDK 版本由 2.9.3 更新为 2.9.7
+- sdk 版本更新,默认 SDK 版本由 2.9.3 更新为 2.9.20
- 默认注释更新
+- 增加禁止用户拖拽快进的属性选项 forbidFastForward [Boolean] 默认 false
> v1.2.9 修正部分默认属性, 感谢"Schean17"网友的反馈与建议.
diff --git a/examples/App.vue b/examples/App.vue
index 966fbcf..5696655 100644
--- a/examples/App.vue
+++ b/examples/App.vue
@@ -13,7 +13,7 @@
播放器已销毁!
-
+
播放
暂停
重播
@@ -58,7 +58,7 @@
// import VueAliplayerV2 from '../packages';
export default {
// components:{ VueAliplayerV2 },
- data(){
+ data () {
return {
options: {
// source:'//player.alicdn.com/video/aliyunmedia.mp4',
@@ -105,42 +105,42 @@ export default {
source: '//player.alicdn.com/video/aliyunmedia.mp4',
// source: '//ivi.bupt.edu.cn/hls/cctv1.m3u8',
show: true,
- forbidFastForward:false,
+ forbidFastForward: false,
isShowMultiple: false,
}
},
- methods:{
+ methods: {
- play(){
+ play () {
this.$refs.VueAliplayerV2.play()
},
- pause(){
+ pause () {
this.$refs.VueAliplayerV2.pause();
},
- replay(){
+ replay () {
this.$refs.VueAliplayerV2.replay();
},
- handlerForbidFastForward(){
-
+ handlerForbidFastForward () {
+
this.forbidFastForward = true
},
- getCurrentTime(){
+ getCurrentTime () {
// this.$refs.VueAliplayerV2.getCurrentTime();
this.source = 'http://ivi.bupt.edu.cn/hls/cctv1.m3u8';
},
- getStatus(){
- const status = this.$refs.VueAliplayerV2.getStatus();
- console.log(`getStatus:`, status);
- alert(`getStatus:${status}`);
+ getStatus () {
+ const status = this.$refs.VueAliplayerV2.getStatus();
+ console.log(`getStatus:`, status);
+ alert(`getStatus:${status}`);
},
- showMultiple(){
+ showMultiple () {
this.isShowMultiple = !this.isShowMultiple;
}
}
@@ -151,19 +151,19 @@ export default {
margin: 0;
padding: 0;
}
-.remove-text{
+.remove-text {
text-align: center;
padding: 20px;
font-size: 24px;
}
-.show-multiple{
+.show-multiple {
display: flex;
- .multiple-player{
+ .multiple-player {
width: calc(100% / 4);
margin: 20px;
}
}
-.player-btns{
+.player-btns {
width: 100%;
display: flex;
justify-content: center;
@@ -183,18 +183,18 @@ export default {
cursor: pointer;
}
}
-.source-box{
+.source-box {
padding: 5px 10px;
margin-bottom: 10px;
- .source-label{
+ .source-label {
margin-right: 20px;
font-size: 16px;
display: block;
}
- #source{
+ #source {
margin-top: 10px;
}
- .source-input{
+ .source-input {
margin-top: 10px;
padding: 5px 10px;
width: 80%;
diff --git a/package.json b/package.json
index 1fc8a45..e397c66 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "vue-aliplayer-v2",
- "version": "1.3.0",
+ "version": "1.3.1",
"author": "yxs",
"description": "感谢每一位支持开源的朋友. 这是一个基于Alipayer 开发并封装成vue组件的集成播放器.可播放rtmp,m3u8,mp4....视频.除支持直播流与点播的基础功能外,也支持视频的加密播放、清晰度切换、直播时移等业务场景",
"main": "lib/vue-aliplayer-v2.umd.min.js",
diff --git a/packages/AliplayerV2/index.vue b/packages/AliplayerV2/index.vue
index b17dd22..4561025 100644
--- a/packages/AliplayerV2/index.vue
+++ b/packages/AliplayerV2/index.vue
@@ -5,7 +5,7 @@
export default {
name: 'VueAliplayerV2',
props: {
- forbidFastForward:{
+ forbidFastForward: { //禁止拖拽快进
required: false,
type: [Boolean],
default: false
@@ -20,22 +20,22 @@ export default {
type: [String],
default: null
},
- cssLink:{ //css版本源
+ cssLink: { //css版本源
required: false,
type: [String],
- default: `https://g.alicdn.com/de/prismplayer/2.9.7/skins/default/aliplayer-min.css`
+ default: `https://g.alicdn.com/de/prismplayer/2.9.20/skins/default/aliplayer-min.css`
},
- scriptSrc:{ //js版本源
+ scriptSrc: { //js版本源
required: false,
type: [String],
- default: `https://g.alicdn.com/de/prismplayer/2.9.7/aliplayer-min.js`
+ default: `https://g.alicdn.com/de/prismplayer/2.9.20/aliplayer-min.js`
}
},
data () {
return {
player: null, //播放器实例
playerId: `player-${Math.random().toString(36).substr(2).toLocaleUpperCase()}`,
- config:{
+ config: {
id: null, //播放器的ID
width: '100%',
autoplay: true,
@@ -43,7 +43,7 @@ export default {
//支持播放地址播放,此播放优先级最高
// source: 'rtmp://182.145.195.238:1935/hls/1194076936807170050',
},
- events:[
+ events: [
/**
* 播放器视频初始化按钮渲染完毕。
* 播放器UI初始设置需要此事件后触发,避免UI被初始化所覆盖。
@@ -125,49 +125,49 @@ export default {
],
};
},
- watch:{
- source(){ //监听播放源变化
+ watch: {
+ source () { //监听播放源变化
this.init();
},
- forbidFastForward(){
+ forbidFastForward () {
this.init();
},
- options:{ //配置项是对象,只能深度监听
- handler(){
+ options: { //配置项是对象,只能深度监听
+ handler () {
this.init();
},
deep: true
}
},
mounted () {
- this.$nextTick(()=>{
+ this.$nextTick(() => {
this.init();
});
},
- updated(){
+ updated () {
//重载播放器
- this.$nextTick(()=>{
+ this.$nextTick(() => {
this.init();
});
},
methods: {
- handlerFastForward(){
+ handlerFastForward () {
},
/**
* 创建script和css
* 加载Alipayer的SDK
*/
- init(){
+ init () {
const linkID = 'app__aliplayer-min-css';
const scriptID = 'app__aliplayer-min-js';
const head = document.getElementsByTagName('head');
const html = document.getElementsByTagName('html');
let scriptTag = document.getElementById(scriptID);
let linkIDTag = document.getElementById(linkID);
- if(!linkIDTag) {
+ if (!linkIDTag) {
// console.log('linkIDTag');
const link = document.createElement('link');
link.type = 'text/css';
@@ -177,7 +177,7 @@ export default {
// link.className = linkID;
head[0].appendChild(link);
}
- if(!scriptTag) {
+ if (!scriptTag) {
// console.log('scriptTag');
scriptTag = document.createElement('script');
scriptTag.type = "text/javascript";
@@ -198,46 +198,41 @@ export default {
* 创建播放器
* @description SDK文档地址:https://help.aliyun.com/document_detail/125572.html?spm=a2c4g.11186623.6.1084.131d1c4cJT7o5Z
*/
- initPlayer(){
- if(typeof window.Aliplayer != 'undefined') {
+ initPlayer () {
+ if (typeof window.Aliplayer != 'undefined') {
const options = this.deepCloneObject(this.options);
- if(options){
+ if (options) {
for (const key in options) {
this.config[key] = options[key];
}
}
- if(this.source) this.config.source = this.source; //播放源
+ if (this.source) this.config.source = this.source; //播放源
this.config.id = this.playerId; //赋值播放器容器id
this.player && this.player.dispose(); //防止实例的重复
this.player = Aliplayer(this.config);
- for(const ev in this.events){
- this.player && this.player.on(this.events[ev],(e)=>{
+ for (const ev in this.events) {
+ this.player && this.player.on(this.events[ev], (e) => {
// console.log(`object ${this.events[ev]}`,e);
- this.$emit(this.events[ev],e);
+ this.$emit(this.events[ev], e);
});
}
- if(this.forbidFastForward){
-
- let last = 0,max_time=0;
- this.player.on('timeupdate',function(){
- let current = this.getCurrentTime();
- if(current - last > 2) {
+ //开启禁止拖拽快进
+ if (this.forbidFastForward) {
+ let last = 0, max_time = 0;
+ this.player.on('timeupdate', function () {
+ let current = this.getCurrentTime();
+ if (current - last > 2) {
this.seek(last);
} else {
last = current;
- if(last >= max_time){
- max_time=last;
+ if (last >= max_time) {
+ max_time = last;
}
}
-
-
-
-
-
- })
- }
+ });
+ }
//通过播放器实例的off方法取消订阅
//player.off('ready',handleReady);
@@ -247,14 +242,14 @@ export default {
/**
* @return player 实例
*/
- getPlayer(){
+ getPlayer () {
return this.player;
},
/**
* 播放视频。
*/
- play(){
+ play () {
// console.log(`播放视频。`);
this.player && this.player.play();
},
@@ -262,7 +257,7 @@ export default {
/**
* 暂停视频
*/
- pause(){
+ pause () {
// console.log(`暂停视频`);
this.player && this.player.pause();
},
@@ -270,7 +265,7 @@ export default {
/**
* 重播视频
*/
- replay(){
+ replay () {
// console.log(`重播视频`);
this.player && this.player.replay();
},
@@ -280,7 +275,7 @@ export default {
* @param time
* @return player
*/
- seek(time){
+ seek (time) {
// console.log(`跳转到某个时刻进行播放,time为${time}秒。`);
this.player && this.player.seek(time);
},
@@ -289,7 +284,7 @@ export default {
* 获取当前的播放时刻,返回的单位为秒。
* @return player
*/
- getCurrentTime(){
+ getCurrentTime () {
// console.log(`获取当前的播放时刻,返回的单位为${this.player && this.player.getCurrentTime()}秒。`);
return this.player && this.player.getCurrentTime();
},
@@ -298,7 +293,7 @@ export default {
* 获取视频总时长,返回的单位为秒,这个需要在视频加载完成以后才可以获取到,可以在play事件后获取。
* @return player
*/
- getDuration(){
+ getDuration () {
// console.log(`获取视频总时长,返回的单位为${this.player && this.player.getDuration()}秒。`);
return this.player && this.player.getDuration();
},
@@ -307,7 +302,7 @@ export default {
* 获取当前的音量,返回值为0-1的实数。ios和部分android会失效。
* @return player
*/
- getVolume(){
+ getVolume () {
// console.log(`获取当前的音量${this.player && this.player.getVolume()}。`);
return this.player && this.player.getVolume();
},
@@ -316,7 +311,7 @@ export default {
* 设置音量,vol为0-1的实数,ios和部分android会失效。
* @return player
*/
- setVolume(v){
+ setVolume (v) {
// console.log(`设置音量,vol为${v}。`);
this.player && this.player.setVolume(v);
},
@@ -326,7 +321,7 @@ export default {
* 暂不支持直播rtmp流切换。
* @return player
*/
- loadByUrl(url, time){
+ loadByUrl (url, time) {
// console.log(`直接播放视频url${url},time为${time}。`);
this.player && this.player.loadByUrl(url, time);
},
@@ -336,7 +331,7 @@ export default {
* @param vid 视频id
* @param 播放凭证
*/
- replayByVidAndPlayAuth(vid, playauth){
+ replayByVidAndPlayAuth (vid, playauth) {
// console.log(`replayByVidAndPlayAuth vid${vid},playauth为${playauth}。`);
this.player && this.player.replayByVidAndPlayAuth(vid, playauth);
},
@@ -347,7 +342,7 @@ export default {
* @param 播放凭证
* @description 仅MPS用户时使用 仅MPS用户时使用 参数顺序为:vid、accId、accSecret、stsToken、authInfo、domainRegion
*/
- replayByVidAndAuthInfo(vid, accId, accSecret, stsToken, authInfo, domainRegion){
+ replayByVidAndAuthInfo (vid, accId, accSecret, stsToken, authInfo, domainRegion) {
// console.log(`replayByVidAndAuthInfo 参数顺序为:vid、accId、accSecret、stsToken、authInfo、domainRegion`,vid, accId, accSecret, stsToken, authInfo, domainRegion);
this.player && this.player.replayByVidAndAuthInfo(vid, accId, accSecret, stsToken, authInfo, domainRegion);
},
@@ -358,7 +353,7 @@ export default {
* @param h 宽度
* @description chrome浏览器下flash播放器分别不能小于397x297。
*/
- setPlayerSize(w, h){
+ setPlayerSize (w, h) {
// console.log(`设置播放器大小 宽度:${w},高度:${h}`);
this.player && this.player.setPlayerSize(w, h);
},
@@ -370,7 +365,7 @@ export default {
* @param h 宽度
* @description {name:“speedButton”,align:“tr”,x:10,y:23}
*/
- setSpeed(speed){
+ setSpeed (speed) {
// console.log(`手动设置播放的倍速:${speed}`);
this.player && this.player.setSpeed(speed);
},
@@ -381,7 +376,7 @@ export default {
* @param height 高度
* @param rate 截图质量
*/
- setSanpshotProperties(width, height, rate){
+ setSanpshotProperties (width, height, rate) {
// console.log(`设置截图参数:`,width, height, rate);
this.player && this.player.setSanpshotProperties(width, height, rate);
},
@@ -389,7 +384,7 @@ export default {
/**
* 播放器全屏,仅H5支持。
*/
- requestFullScreen(){
+ requestFullScreen () {
// console.log(`播放器全屏,仅H5支持`);
this.player && this.player.fullscreenService && this.player.fullscreenService.requestFullScreen();
},
@@ -397,7 +392,7 @@ export default {
/**
* 播放器退出全屏,iOS调用无效,仅H5支持。
*/
- cancelFullScreen(){
+ cancelFullScreen () {
// console.log(`播放器全屏,仅H5支持`);
this.player && this.player.fullscreenService && this.player.fullscreenService.cancelFullScreen();
},
@@ -405,7 +400,7 @@ export default {
/**
* 获取播放器全屏状态,仅H5支持。
*/
- getIsFullScreen(){
+ getIsFullScreen () {
// console.log(`获取播放器全屏状态,仅H5支持。`,this.player && this.player.fullscreenService && this.player && this.player.fullscreenService.getIsFullScreen());
return this.player && this.player.fullscreenService && this.player.fullscreenService.getIsFullScreen();
},
@@ -414,7 +409,7 @@ export default {
* 获取播放器状态,包含的值,
* @returns init ready loading play pause playing waiting error ended
*/
- getStatus(){
+ getStatus () {
// console.log(`获取播放器状态,包含的值`,this.player && this.player.fullscreenService && this.player && this.player.fullscreenService.getStatus());
return this.player && this.player.getStatus();
},
@@ -425,7 +420,7 @@ export default {
* @param endTime 结束时间
* @description 例子:player.liveShiftSerivce.setLiveTimeRange(“”,‘2018/01/04 20:00:00’)
*/
- setLiveTimeRange(beginTime, endTime){
+ setLiveTimeRange (beginTime, endTime) {
// console.log(`设置直播的开始时间:${beginTime},结束时间:${endTime},开启直播时移功能时使用。`);
this.player && this.player.liveShiftSerivce && this.player.liveShiftSerivce.setLiveTimeRange(beginTime, endTime);
},
@@ -435,7 +430,7 @@ export default {
* @param rotate 旋转角度
* @description 例如: setRotate(90)。详情参见旋转和镜像。
*/
- setRotate(rotate){
+ setRotate (rotate) {
// console.log(`参数为旋转角度:${rotate}。`);
this.player && this.player.setRotate(rotate);
},
@@ -444,7 +439,7 @@ export default {
* 获取旋转角度。详情参见旋转和镜像。
* @return rotate 旋转角度
*/
- getRotate(){
+ getRotate () {
// console.log(`获取旋转角度:${this.player && this.player.getRotate()}`);
return this.player && this.player.getRotate();
},
@@ -454,7 +449,7 @@ export default {
* @param image 镜像类型 可选值为:horizon,vertical
* @description 例如: setImage(‘horizon’)。详情参见旋转和镜像。
*/
- setImage(image){
+ setImage (image) {
// console.log(`设置镜像:${image}。`);
this.player && this.player.setImage(image);
},
@@ -462,7 +457,7 @@ export default {
/**
* 播放器销毁
*/
- dispose(){
+ dispose () {
// console.log(`播放器销毁。`);
this.player && this.player.dispose();
},
@@ -471,7 +466,7 @@ export default {
* 设置封面
* @param cover 封面地址
*/
- setCover(cover){
+ setCover (cover) {
// console.log(`设置封面:${cover}`);
this.player && this.player.setCover(cover);
},
@@ -480,7 +475,7 @@ export default {
* 设置封面
* @param markers 设置打点数据
*/
- setProgressMarkers(markers){
+ setProgressMarkers (markers) {
// console.log(`markers打点数据集合:${markers}`);
this.player && this.player.setProgressMarkers(markers);
},
@@ -489,7 +484,7 @@ export default {
* 设置试看时间,单位为秒,详情参见
* @param time 试看时间
*/
- setPreviewTime(time){
+ setPreviewTime (time) {
// console.log(`设置试看时间,单位为:${time}秒`);
this.player && this.player.setPreviewTime(time);
},
@@ -498,7 +493,7 @@ export default {
* 获取试看时间
* @return rotate 旋转角度
*/
- getPreviewTime(){
+ getPreviewTime () {
// console.log(`获取试看时间:${this.player && this.player.getPreviewTime()}`);
return this.player && this.player.getPreviewTime();
},
@@ -506,7 +501,7 @@ export default {
/**
* 是否试看
*/
- isPreview(){
+ isPreview () {
// console.log(`是否试看`);
this.player && this.player.isPreview();
},
@@ -515,8 +510,8 @@ export default {
* @param ev 事件名
* @param handle 回调方法
*/
- off(ev,handle){
- this.player && this.player.off(ev,handle);
+ off (ev, handle) {
+ this.player && this.player.off(ev, handle);
},
@@ -543,7 +538,7 @@ export default {
}
},
- beforeDestroy(){ //防止重复创建
+ beforeDestroy () { //防止重复创建
this.dispose(); //销毁播放器(防止直播播放的情况下,播放器已经销毁,而后台还在继续下载资源造成卡顿的bug)
// const head = document.querySelector('head');
// const cssNodes = document.querySelectorAll(`link.app__aliplayer-min-css`);
From d9bd73f6d48c53f79d4bed3b1617531fa71c9171 Mon Sep 17 00:00:00 2001
From: zhouliujun <1096432931@qq.com>
Date: Thu, 12 May 2022 14:23:21 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0umd?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
lib/vue-aliplayer-v2.common.js | 468 +++++++++++++++++---------------
lib/vue-aliplayer-v2.umd.js | 468 +++++++++++++++++---------------
lib/vue-aliplayer-v2.umd.min.js | 2 +-
3 files changed, 493 insertions(+), 445 deletions(-)
diff --git a/lib/vue-aliplayer-v2.common.js b/lib/vue-aliplayer-v2.common.js
index ea19b0e..5e7d9b5 100644
--- a/lib/vue-aliplayer-v2.common.js
+++ b/lib/vue-aliplayer-v2.common.js
@@ -87,30 +87,22 @@ module.exports =
/************************************************************************/
/******/ ({
-/***/ "05fd":
-/***/ (function(module, exports, __webpack_require__) {
+/***/ "0614":
+/***/ (function(module, exports) {
-module.exports = __webpack_require__("baa7")('native-function-to-string', Function.toString);
-
-
-/***/ }),
-
-/***/ "065d":
-/***/ (function(module, exports, __webpack_require__) {
-
-var dP = __webpack_require__("bb8b");
-var createDesc = __webpack_require__("5edc");
-module.exports = __webpack_require__("26df") ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
-} : function (object, key, value) {
- object[key] = value;
- return object;
+module.exports = function (bitmap, value) {
+ return {
+ enumerable: !(bitmap & 1),
+ configurable: !(bitmap & 2),
+ writable: !(bitmap & 4),
+ value: value
+ };
};
/***/ }),
-/***/ "0926":
+/***/ "0cc1":
/***/ (function(module, exports) {
module.exports = function (exec) {
@@ -122,26 +114,12 @@ module.exports = function (exec) {
};
-/***/ }),
-
-/***/ "0b34":
-/***/ (function(module, exports) {
-
-// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
-var global = module.exports = typeof window != 'undefined' && window.Math == Math
- ? window : typeof self != 'undefined' && self.Math == Math ? self
- // eslint-disable-next-line no-new-func
- : Function('return this')();
-if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
-
-
/***/ }),
/***/ "112a":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// CONCATENATED MODULE: ./node_modules/_@vue_cli-service@3.12.1@@vue/cli-service/lib/commands/build/setPublicPath.js
@@ -161,36 +139,36 @@ if (typeof window !== 'undefined') {
// Indicate to webpack that this file can be concatenated
/* harmony default export */ var setPublicPath = (null);
-// EXTERNAL MODULE: ./node_modules/_core-js@2.6.12@core-js/modules/es6.function.name.js
-var es6_function_name = __webpack_require__("a450");
+// 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":"52b194f6-vue-loader-template"}!./node_modules/_vue-loader@15.9.7@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.9.7@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/index.vue?vue&type=template&id=49dd74ed&
+// 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=c8a41478&
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 = []
-// CONCATENATED MODULE: ./packages/AliplayerV2/index.vue?vue&type=template&id=49dd74ed&
+// CONCATENATED MODULE: ./packages/AliplayerV2/index.vue?vue&type=template&id=c8a41478&
+
+// 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); }
-// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.14.6@@babel/runtime/helpers/esm/typeof.js
function _typeof(obj) {
- "@babel/helpers - typeof";
-
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
+ if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
_typeof = function _typeof(obj) {
- return typeof obj;
+ return _typeof2(obj);
};
} else {
_typeof = function _typeof(obj) {
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : 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.12@core-js/modules/es6.regexp.to-string.js
-var es6_regexp_to_string = __webpack_require__("4057");
+// 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");
-// 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.2.2@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.7@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&
//
@@ -199,6 +177,12 @@ var es6_regexp_to_string = __webpack_require__("4057");
/* harmony default export */ var AliplayerV2vue_type_script_lang_js_ = ({
name: 'VueAliplayerV2',
props: {
+ forbidFastForward: {
+ //禁止拖拽快进
+ required: false,
+ type: [Boolean],
+ default: false
+ },
options: {
//配置项
required: false,
@@ -217,13 +201,13 @@ var es6_regexp_to_string = __webpack_require__("4057");
//css版本源
required: false,
type: [String],
- default: "https://g.alicdn.com/de/prismplayer/2.9.7/skins/default/aliplayer-min.css"
+ default: "https://g.alicdn.com/de/prismplayer/2.9.20/skins/default/aliplayer-min.css"
},
scriptSrc: {
//js版本源
required: false,
type: [String],
- default: "https://g.alicdn.com/de/prismplayer/2.9.7/aliplayer-min.js"
+ default: "https://g.alicdn.com/de/prismplayer/2.9.20/aliplayer-min.js"
}
},
data: function data() {
@@ -326,6 +310,9 @@ var es6_regexp_to_string = __webpack_require__("4057");
//监听播放源变化
this.init();
},
+ forbidFastForward: function forbidFastForward() {
+ this.init();
+ },
options: {
//配置项是对象,只能深度监听
handler: function handler() {
@@ -350,6 +337,8 @@ var es6_regexp_to_string = __webpack_require__("4057");
});
},
methods: {
+ handlerFastForward: function handlerFastForward() {},
+
/**
* 创建script和css
* 加载Alipayer的SDK
@@ -426,6 +415,25 @@ var es6_regexp_to_string = __webpack_require__("4057");
for (var ev in this.events) {
_loop(ev);
+ } //开启禁止拖拽快进
+
+
+ if (this.forbidFastForward) {
+ var last = 0,
+ max_time = 0;
+ this.player.on('timeupdate', function () {
+ var current = this.getCurrentTime();
+
+ if (current - last > 2) {
+ this.seek(last);
+ } else {
+ last = current;
+
+ if (last >= max_time) {
+ max_time = last;
+ }
+ }
+ });
} //通过播放器实例的off方法取消订阅
//player.off('ready',handleReady);
@@ -748,7 +756,7 @@ var es6_regexp_to_string = __webpack_require__("4057");
});
// CONCATENATED MODULE: ./packages/AliplayerV2/index.vue?vue&type=script&lang=js&
/* harmony default export */ var packages_AliplayerV2vue_type_script_lang_js_ = (AliplayerV2vue_type_script_lang_js_);
-// CONCATENATED MODULE: ./node_modules/_vue-loader@15.9.7@vue-loader/lib/runtime/componentNormalizer.js
+// CONCATENATED MODULE: ./node_modules/_vue-loader@15.7.2@vue-loader/lib/runtime/componentNormalizer.js
/* globals __VUE_SSR_CONTEXT__ */
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
@@ -813,12 +821,7 @@ function normalizeComponent (
options._ssrRegister = hook
} else if (injectStyles) {
hook = shadowMode
- ? function () {
- injectStyles.call(
- this,
- (options.functional ? this.parent : this).$root.$options.shadowRoot
- )
- }
+ ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
: injectStyles
}
@@ -827,7 +830,7 @@ function normalizeComponent (
// for template-only hot-reload because in that case the render fn doesn't
// go through the normalizer
options._injectStyles = hook
- // register for functional component in vue file
+ // register for functioal component in vue file
var originalRender = options.render
options.render = function renderWithStyleInjection (h, context) {
hook.call(context)
@@ -891,74 +894,21 @@ AliplayerV2.Player = AliplayerV2;
/***/ }),
-/***/ "26df":
+/***/ "25ae":
/***/ (function(module, exports, __webpack_require__) {
-// Thank's IE8 for his funny defineProperty
-module.exports = !__webpack_require__("0926")(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
+module.exports = !__webpack_require__("f9a5") && !__webpack_require__("0cc1")(function () {
+ return Object.defineProperty(__webpack_require__("6618")('div'), 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
-/***/ "3d8a":
-/***/ (function(module, exports) {
-
-module.exports = false;
-
-
-/***/ }),
-
-/***/ "4057":
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-__webpack_require__("de49");
-var anObject = __webpack_require__("a86f");
-var $flags = __webpack_require__("6bf8");
-var DESCRIPTORS = __webpack_require__("26df");
-var TO_STRING = 'toString';
-var $toString = /./[TO_STRING];
-
-var define = function (fn) {
- __webpack_require__("84e8")(RegExp.prototype, TO_STRING, fn, true);
-};
-
-// 21.2.5.14 RegExp.prototype.toString()
-if (__webpack_require__("0926")(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
- define(function toString() {
- var R = anObject(this);
- return '/'.concat(R.source, '/',
- 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
- });
-// FF44- RegExp#toString has a wrong name
-} else if ($toString.name != TO_STRING) {
- define(function toString() {
- return $toString.call(this);
- });
-}
-
-
-/***/ }),
-
-/***/ "4fd4":
-/***/ (function(module, exports) {
-
-var hasOwnProperty = {}.hasOwnProperty;
-module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
-};
-
-
-/***/ }),
-
-/***/ "5d10":
+/***/ "2ab1":
/***/ (function(module, exports, __webpack_require__) {
// 7.1.1 ToPrimitive(input [, PreferredType])
-var isObject = __webpack_require__("9cff");
+var isObject = __webpack_require__("da0b");
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function (it, S) {
@@ -973,73 +923,131 @@ module.exports = function (it, S) {
/***/ }),
-/***/ "5edc":
+/***/ "3f8b":
/***/ (function(module, exports) {
-module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
+// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
+var global = module.exports = typeof window != 'undefined' && window.Math == Math
+ ? window : typeof self != 'undefined' && self.Math == Math ? self
+ // eslint-disable-next-line no-new-func
+ : Function('return this')();
+if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
+
+
+/***/ }),
+
+/***/ "4d2c":
+/***/ (function(module, exports) {
+
+var id = 0;
+var px = Math.random();
+module.exports = function (key) {
+ return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};
/***/ }),
-/***/ "6bf8":
-/***/ (function(module, exports, __webpack_require__) {
+/***/ "549d":
+/***/ (function(module, exports) {
-"use strict";
-
-// 21.2.5.3 get RegExp.prototype.flags
-var anObject = __webpack_require__("a86f");
-module.exports = function () {
- var that = anObject(this);
- var result = '';
- if (that.global) result += 'g';
- if (that.ignoreCase) result += 'i';
- if (that.multiline) result += 'm';
- if (that.unicode) result += 'u';
- if (that.sticky) result += 'y';
- return result;
+var hasOwnProperty = {}.hasOwnProperty;
+module.exports = function (it, key) {
+ return hasOwnProperty.call(it, key);
};
/***/ }),
-/***/ "76e3":
-/***/ (function(module, exports) {
+/***/ "6618":
+/***/ (function(module, exports, __webpack_require__) {
-var core = module.exports = { version: '2.6.12' };
-if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
+var isObject = __webpack_require__("da0b");
+var document = __webpack_require__("3f8b").document;
+// typeof document.createElement is 'object' in old IE
+var is = isObject(document) && isObject(document.createElement);
+module.exports = function (it) {
+ return is ? document.createElement(it) : {};
+};
/***/ }),
-/***/ "83d3":
+/***/ "6cc2":
+/***/ (function(module, exports) {
+
+module.exports = false;
+
+
+/***/ }),
+
+/***/ "6fe0":
/***/ (function(module, exports, __webpack_require__) {
-module.exports = !__webpack_require__("26df") && !__webpack_require__("0926")(function () {
- return Object.defineProperty(__webpack_require__("e8d7")('div'), 'a', { get: function () { return 7; } }).a != 7;
+module.exports = __webpack_require__("f341")('native-function-to-string', Function.toString);
+
+
+/***/ }),
+
+/***/ "7cfd":
+/***/ (function(module, exports, __webpack_require__) {
+
+var dP = __webpack_require__("d3d8").f;
+var FProto = Function.prototype;
+var nameRE = /^\s*function ([^ (]*)/;
+var NAME = 'name';
+
+// 19.2.4.2 name
+NAME in FProto || __webpack_require__("f9a5") && dP(FProto, NAME, {
+ configurable: true,
+ get: function () {
+ try {
+ return ('' + this).match(nameRE)[1];
+ } catch (e) {
+ return '';
+ }
+ }
});
/***/ }),
-/***/ "84e8":
+/***/ "8cac":
/***/ (function(module, exports, __webpack_require__) {
-var global = __webpack_require__("0b34");
-var hide = __webpack_require__("065d");
-var has = __webpack_require__("4fd4");
-var SRC = __webpack_require__("d8b3")('src');
-var $toString = __webpack_require__("05fd");
+var isObject = __webpack_require__("da0b");
+module.exports = function (it) {
+ if (!isObject(it)) throw TypeError(it + ' is not an object!');
+ return it;
+};
+
+
+/***/ }),
+
+/***/ "9f7e":
+/***/ (function(module, exports, __webpack_require__) {
+
+// 21.2.5.3 get RegExp.prototype.flags()
+if (__webpack_require__("f9a5") && /./g.flags != 'g') __webpack_require__("d3d8").f(RegExp.prototype, 'flags', {
+ configurable: true,
+ get: __webpack_require__("e7a1")
+});
+
+
+/***/ }),
+
+/***/ "a6d5":
+/***/ (function(module, exports, __webpack_require__) {
+
+var global = __webpack_require__("3f8b");
+var hide = __webpack_require__("b8ea");
+var has = __webpack_require__("549d");
+var SRC = __webpack_require__("4d2c")('src');
+var $toString = __webpack_require__("6fe0");
var TO_STRING = 'toString';
var TPL = ('' + $toString).split(TO_STRING);
-__webpack_require__("76e3").inspectSource = function (it) {
+__webpack_require__("da27").inspectSource = function (it) {
return $toString.call(it);
};
@@ -1066,79 +1074,63 @@ __webpack_require__("76e3").inspectSource = function (it) {
/***/ }),
-/***/ "9cff":
-/***/ (function(module, exports) {
+/***/ "b8ea":
+/***/ (function(module, exports, __webpack_require__) {
-module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
+var dP = __webpack_require__("d3d8");
+var createDesc = __webpack_require__("0614");
+module.exports = __webpack_require__("f9a5") ? function (object, key, value) {
+ return dP.f(object, key, createDesc(1, value));
+} : function (object, key, value) {
+ object[key] = value;
+ return object;
};
/***/ }),
-/***/ "a450":
+/***/ "cc1d":
/***/ (function(module, exports, __webpack_require__) {
-var dP = __webpack_require__("bb8b").f;
-var FProto = Function.prototype;
-var nameRE = /^\s*function ([^ (]*)/;
-var NAME = 'name';
+"use strict";
-// 19.2.4.2 name
-NAME in FProto || __webpack_require__("26df") && dP(FProto, NAME, {
- configurable: true,
- get: function () {
- try {
- return ('' + this).match(nameRE)[1];
- } catch (e) {
- return '';
- }
- }
-});
+__webpack_require__("9f7e");
+var anObject = __webpack_require__("8cac");
+var $flags = __webpack_require__("e7a1");
+var DESCRIPTORS = __webpack_require__("f9a5");
+var TO_STRING = 'toString';
+var $toString = /./[TO_STRING];
-
-/***/ }),
-
-/***/ "a86f":
-/***/ (function(module, exports, __webpack_require__) {
-
-var isObject = __webpack_require__("9cff");
-module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
+var define = function (fn) {
+ __webpack_require__("a6d5")(RegExp.prototype, TO_STRING, fn, true);
};
-
-/***/ }),
-
-/***/ "baa7":
-/***/ (function(module, exports, __webpack_require__) {
-
-var core = __webpack_require__("76e3");
-var global = __webpack_require__("0b34");
-var SHARED = '__core-js_shared__';
-var store = global[SHARED] || (global[SHARED] = {});
-
-(module.exports = function (key, value) {
- return store[key] || (store[key] = value !== undefined ? value : {});
-})('versions', []).push({
- version: core.version,
- mode: __webpack_require__("3d8a") ? 'pure' : 'global',
- copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
-});
+// 21.2.5.14 RegExp.prototype.toString()
+if (__webpack_require__("0cc1")(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
+ define(function toString() {
+ var R = anObject(this);
+ return '/'.concat(R.source, '/',
+ 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
+ });
+// FF44- RegExp#toString has a wrong name
+} else if ($toString.name != TO_STRING) {
+ define(function toString() {
+ return $toString.call(this);
+ });
+}
/***/ }),
-/***/ "bb8b":
+/***/ "d3d8":
/***/ (function(module, exports, __webpack_require__) {
-var anObject = __webpack_require__("a86f");
-var IE8_DOM_DEFINE = __webpack_require__("83d3");
-var toPrimitive = __webpack_require__("5d10");
+var anObject = __webpack_require__("8cac");
+var IE8_DOM_DEFINE = __webpack_require__("25ae");
+var toPrimitive = __webpack_require__("2ab1");
var dP = Object.defineProperty;
-exports.f = __webpack_require__("26df") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
+exports.f = __webpack_require__("f9a5") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
@@ -1153,26 +1145,21 @@ exports.f = __webpack_require__("26df") ? Object.defineProperty : function defin
/***/ }),
-/***/ "d8b3":
+/***/ "da0b":
/***/ (function(module, exports) {
-var id = 0;
-var px = Math.random();
-module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
+module.exports = function (it) {
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
};
/***/ }),
-/***/ "de49":
-/***/ (function(module, exports, __webpack_require__) {
+/***/ "da27":
+/***/ (function(module, exports) {
-// 21.2.5.3 get RegExp.prototype.flags()
-if (__webpack_require__("26df") && /./g.flags != 'g') __webpack_require__("bb8b").f(RegExp.prototype, 'flags', {
- configurable: true,
- get: __webpack_require__("6bf8")
-});
+var core = module.exports = { version: '2.6.10' };
+if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
/***/ }),
@@ -1220,18 +1207,55 @@ if (__webpack_require__("26df") && /./g.flags != 'g') __webpack_require__("bb8b"
/***/ }),
-/***/ "e8d7":
+/***/ "e7a1":
/***/ (function(module, exports, __webpack_require__) {
-var isObject = __webpack_require__("9cff");
-var document = __webpack_require__("0b34").document;
-// typeof document.createElement is 'object' in old IE
-var is = isObject(document) && isObject(document.createElement);
-module.exports = function (it) {
- return is ? document.createElement(it) : {};
+"use strict";
+
+// 21.2.5.3 get RegExp.prototype.flags
+var anObject = __webpack_require__("8cac");
+module.exports = function () {
+ var that = anObject(this);
+ var result = '';
+ if (that.global) result += 'g';
+ if (that.ignoreCase) result += 'i';
+ if (that.multiline) result += 'm';
+ if (that.unicode) result += 'u';
+ if (that.sticky) result += 'y';
+ return result;
};
+/***/ }),
+
+/***/ "f341":
+/***/ (function(module, exports, __webpack_require__) {
+
+var core = __webpack_require__("da27");
+var global = __webpack_require__("3f8b");
+var SHARED = '__core-js_shared__';
+var store = global[SHARED] || (global[SHARED] = {});
+
+(module.exports = function (key, value) {
+ return store[key] || (store[key] = value !== undefined ? value : {});
+})('versions', []).push({
+ version: core.version,
+ mode: __webpack_require__("6cc2") ? 'pure' : 'global',
+ copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
+});
+
+
+/***/ }),
+
+/***/ "f9a5":
+/***/ (function(module, exports, __webpack_require__) {
+
+// Thank's IE8 for his funny defineProperty
+module.exports = !__webpack_require__("0cc1")(function () {
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
+});
+
+
/***/ })
/******/ });
diff --git a/lib/vue-aliplayer-v2.umd.js b/lib/vue-aliplayer-v2.umd.js
index bc4ed61..971a4a9 100644
--- a/lib/vue-aliplayer-v2.umd.js
+++ b/lib/vue-aliplayer-v2.umd.js
@@ -96,30 +96,22 @@ return /******/ (function(modules) { // webpackBootstrap
/************************************************************************/
/******/ ({
-/***/ "05fd":
-/***/ (function(module, exports, __webpack_require__) {
+/***/ "0614":
+/***/ (function(module, exports) {
-module.exports = __webpack_require__("baa7")('native-function-to-string', Function.toString);
-
-
-/***/ }),
-
-/***/ "065d":
-/***/ (function(module, exports, __webpack_require__) {
-
-var dP = __webpack_require__("bb8b");
-var createDesc = __webpack_require__("5edc");
-module.exports = __webpack_require__("26df") ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
-} : function (object, key, value) {
- object[key] = value;
- return object;
+module.exports = function (bitmap, value) {
+ return {
+ enumerable: !(bitmap & 1),
+ configurable: !(bitmap & 2),
+ writable: !(bitmap & 4),
+ value: value
+ };
};
/***/ }),
-/***/ "0926":
+/***/ "0cc1":
/***/ (function(module, exports) {
module.exports = function (exec) {
@@ -131,26 +123,12 @@ module.exports = function (exec) {
};
-/***/ }),
-
-/***/ "0b34":
-/***/ (function(module, exports) {
-
-// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
-var global = module.exports = typeof window != 'undefined' && window.Math == Math
- ? window : typeof self != 'undefined' && self.Math == Math ? self
- // eslint-disable-next-line no-new-func
- : Function('return this')();
-if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
-
-
/***/ }),
/***/ "112a":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// CONCATENATED MODULE: ./node_modules/_@vue_cli-service@3.12.1@@vue/cli-service/lib/commands/build/setPublicPath.js
@@ -170,36 +148,36 @@ if (typeof window !== 'undefined') {
// Indicate to webpack that this file can be concatenated
/* harmony default export */ var setPublicPath = (null);
-// EXTERNAL MODULE: ./node_modules/_core-js@2.6.12@core-js/modules/es6.function.name.js
-var es6_function_name = __webpack_require__("a450");
+// 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":"52b194f6-vue-loader-template"}!./node_modules/_vue-loader@15.9.7@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.9.7@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/index.vue?vue&type=template&id=49dd74ed&
+// 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=c8a41478&
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 = []
-// CONCATENATED MODULE: ./packages/AliplayerV2/index.vue?vue&type=template&id=49dd74ed&
+// CONCATENATED MODULE: ./packages/AliplayerV2/index.vue?vue&type=template&id=c8a41478&
+
+// 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); }
-// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.14.6@@babel/runtime/helpers/esm/typeof.js
function _typeof(obj) {
- "@babel/helpers - typeof";
-
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
+ if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
_typeof = function _typeof(obj) {
- return typeof obj;
+ return _typeof2(obj);
};
} else {
_typeof = function _typeof(obj) {
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : 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.12@core-js/modules/es6.regexp.to-string.js
-var es6_regexp_to_string = __webpack_require__("4057");
+// 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");
-// 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.2.2@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.7@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&
//
@@ -208,6 +186,12 @@ var es6_regexp_to_string = __webpack_require__("4057");
/* harmony default export */ var AliplayerV2vue_type_script_lang_js_ = ({
name: 'VueAliplayerV2',
props: {
+ forbidFastForward: {
+ //禁止拖拽快进
+ required: false,
+ type: [Boolean],
+ default: false
+ },
options: {
//配置项
required: false,
@@ -226,13 +210,13 @@ var es6_regexp_to_string = __webpack_require__("4057");
//css版本源
required: false,
type: [String],
- default: "https://g.alicdn.com/de/prismplayer/2.9.7/skins/default/aliplayer-min.css"
+ default: "https://g.alicdn.com/de/prismplayer/2.9.20/skins/default/aliplayer-min.css"
},
scriptSrc: {
//js版本源
required: false,
type: [String],
- default: "https://g.alicdn.com/de/prismplayer/2.9.7/aliplayer-min.js"
+ default: "https://g.alicdn.com/de/prismplayer/2.9.20/aliplayer-min.js"
}
},
data: function data() {
@@ -335,6 +319,9 @@ var es6_regexp_to_string = __webpack_require__("4057");
//监听播放源变化
this.init();
},
+ forbidFastForward: function forbidFastForward() {
+ this.init();
+ },
options: {
//配置项是对象,只能深度监听
handler: function handler() {
@@ -359,6 +346,8 @@ var es6_regexp_to_string = __webpack_require__("4057");
});
},
methods: {
+ handlerFastForward: function handlerFastForward() {},
+
/**
* 创建script和css
* 加载Alipayer的SDK
@@ -435,6 +424,25 @@ var es6_regexp_to_string = __webpack_require__("4057");
for (var ev in this.events) {
_loop(ev);
+ } //开启禁止拖拽快进
+
+
+ if (this.forbidFastForward) {
+ var last = 0,
+ max_time = 0;
+ this.player.on('timeupdate', function () {
+ var current = this.getCurrentTime();
+
+ if (current - last > 2) {
+ this.seek(last);
+ } else {
+ last = current;
+
+ if (last >= max_time) {
+ max_time = last;
+ }
+ }
+ });
} //通过播放器实例的off方法取消订阅
//player.off('ready',handleReady);
@@ -757,7 +765,7 @@ var es6_regexp_to_string = __webpack_require__("4057");
});
// CONCATENATED MODULE: ./packages/AliplayerV2/index.vue?vue&type=script&lang=js&
/* harmony default export */ var packages_AliplayerV2vue_type_script_lang_js_ = (AliplayerV2vue_type_script_lang_js_);
-// CONCATENATED MODULE: ./node_modules/_vue-loader@15.9.7@vue-loader/lib/runtime/componentNormalizer.js
+// CONCATENATED MODULE: ./node_modules/_vue-loader@15.7.2@vue-loader/lib/runtime/componentNormalizer.js
/* globals __VUE_SSR_CONTEXT__ */
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
@@ -822,12 +830,7 @@ function normalizeComponent (
options._ssrRegister = hook
} else if (injectStyles) {
hook = shadowMode
- ? function () {
- injectStyles.call(
- this,
- (options.functional ? this.parent : this).$root.$options.shadowRoot
- )
- }
+ ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
: injectStyles
}
@@ -836,7 +839,7 @@ function normalizeComponent (
// for template-only hot-reload because in that case the render fn doesn't
// go through the normalizer
options._injectStyles = hook
- // register for functional component in vue file
+ // register for functioal component in vue file
var originalRender = options.render
options.render = function renderWithStyleInjection (h, context) {
hook.call(context)
@@ -900,74 +903,21 @@ AliplayerV2.Player = AliplayerV2;
/***/ }),
-/***/ "26df":
+/***/ "25ae":
/***/ (function(module, exports, __webpack_require__) {
-// Thank's IE8 for his funny defineProperty
-module.exports = !__webpack_require__("0926")(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
+module.exports = !__webpack_require__("f9a5") && !__webpack_require__("0cc1")(function () {
+ return Object.defineProperty(__webpack_require__("6618")('div'), 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
-/***/ "3d8a":
-/***/ (function(module, exports) {
-
-module.exports = false;
-
-
-/***/ }),
-
-/***/ "4057":
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-__webpack_require__("de49");
-var anObject = __webpack_require__("a86f");
-var $flags = __webpack_require__("6bf8");
-var DESCRIPTORS = __webpack_require__("26df");
-var TO_STRING = 'toString';
-var $toString = /./[TO_STRING];
-
-var define = function (fn) {
- __webpack_require__("84e8")(RegExp.prototype, TO_STRING, fn, true);
-};
-
-// 21.2.5.14 RegExp.prototype.toString()
-if (__webpack_require__("0926")(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
- define(function toString() {
- var R = anObject(this);
- return '/'.concat(R.source, '/',
- 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
- });
-// FF44- RegExp#toString has a wrong name
-} else if ($toString.name != TO_STRING) {
- define(function toString() {
- return $toString.call(this);
- });
-}
-
-
-/***/ }),
-
-/***/ "4fd4":
-/***/ (function(module, exports) {
-
-var hasOwnProperty = {}.hasOwnProperty;
-module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
-};
-
-
-/***/ }),
-
-/***/ "5d10":
+/***/ "2ab1":
/***/ (function(module, exports, __webpack_require__) {
// 7.1.1 ToPrimitive(input [, PreferredType])
-var isObject = __webpack_require__("9cff");
+var isObject = __webpack_require__("da0b");
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function (it, S) {
@@ -982,73 +932,131 @@ module.exports = function (it, S) {
/***/ }),
-/***/ "5edc":
+/***/ "3f8b":
/***/ (function(module, exports) {
-module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
+// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
+var global = module.exports = typeof window != 'undefined' && window.Math == Math
+ ? window : typeof self != 'undefined' && self.Math == Math ? self
+ // eslint-disable-next-line no-new-func
+ : Function('return this')();
+if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
+
+
+/***/ }),
+
+/***/ "4d2c":
+/***/ (function(module, exports) {
+
+var id = 0;
+var px = Math.random();
+module.exports = function (key) {
+ return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};
/***/ }),
-/***/ "6bf8":
-/***/ (function(module, exports, __webpack_require__) {
+/***/ "549d":
+/***/ (function(module, exports) {
-"use strict";
-
-// 21.2.5.3 get RegExp.prototype.flags
-var anObject = __webpack_require__("a86f");
-module.exports = function () {
- var that = anObject(this);
- var result = '';
- if (that.global) result += 'g';
- if (that.ignoreCase) result += 'i';
- if (that.multiline) result += 'm';
- if (that.unicode) result += 'u';
- if (that.sticky) result += 'y';
- return result;
+var hasOwnProperty = {}.hasOwnProperty;
+module.exports = function (it, key) {
+ return hasOwnProperty.call(it, key);
};
/***/ }),
-/***/ "76e3":
-/***/ (function(module, exports) {
+/***/ "6618":
+/***/ (function(module, exports, __webpack_require__) {
-var core = module.exports = { version: '2.6.12' };
-if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
+var isObject = __webpack_require__("da0b");
+var document = __webpack_require__("3f8b").document;
+// typeof document.createElement is 'object' in old IE
+var is = isObject(document) && isObject(document.createElement);
+module.exports = function (it) {
+ return is ? document.createElement(it) : {};
+};
/***/ }),
-/***/ "83d3":
+/***/ "6cc2":
+/***/ (function(module, exports) {
+
+module.exports = false;
+
+
+/***/ }),
+
+/***/ "6fe0":
/***/ (function(module, exports, __webpack_require__) {
-module.exports = !__webpack_require__("26df") && !__webpack_require__("0926")(function () {
- return Object.defineProperty(__webpack_require__("e8d7")('div'), 'a', { get: function () { return 7; } }).a != 7;
+module.exports = __webpack_require__("f341")('native-function-to-string', Function.toString);
+
+
+/***/ }),
+
+/***/ "7cfd":
+/***/ (function(module, exports, __webpack_require__) {
+
+var dP = __webpack_require__("d3d8").f;
+var FProto = Function.prototype;
+var nameRE = /^\s*function ([^ (]*)/;
+var NAME = 'name';
+
+// 19.2.4.2 name
+NAME in FProto || __webpack_require__("f9a5") && dP(FProto, NAME, {
+ configurable: true,
+ get: function () {
+ try {
+ return ('' + this).match(nameRE)[1];
+ } catch (e) {
+ return '';
+ }
+ }
});
/***/ }),
-/***/ "84e8":
+/***/ "8cac":
/***/ (function(module, exports, __webpack_require__) {
-var global = __webpack_require__("0b34");
-var hide = __webpack_require__("065d");
-var has = __webpack_require__("4fd4");
-var SRC = __webpack_require__("d8b3")('src');
-var $toString = __webpack_require__("05fd");
+var isObject = __webpack_require__("da0b");
+module.exports = function (it) {
+ if (!isObject(it)) throw TypeError(it + ' is not an object!');
+ return it;
+};
+
+
+/***/ }),
+
+/***/ "9f7e":
+/***/ (function(module, exports, __webpack_require__) {
+
+// 21.2.5.3 get RegExp.prototype.flags()
+if (__webpack_require__("f9a5") && /./g.flags != 'g') __webpack_require__("d3d8").f(RegExp.prototype, 'flags', {
+ configurable: true,
+ get: __webpack_require__("e7a1")
+});
+
+
+/***/ }),
+
+/***/ "a6d5":
+/***/ (function(module, exports, __webpack_require__) {
+
+var global = __webpack_require__("3f8b");
+var hide = __webpack_require__("b8ea");
+var has = __webpack_require__("549d");
+var SRC = __webpack_require__("4d2c")('src');
+var $toString = __webpack_require__("6fe0");
var TO_STRING = 'toString';
var TPL = ('' + $toString).split(TO_STRING);
-__webpack_require__("76e3").inspectSource = function (it) {
+__webpack_require__("da27").inspectSource = function (it) {
return $toString.call(it);
};
@@ -1075,79 +1083,63 @@ __webpack_require__("76e3").inspectSource = function (it) {
/***/ }),
-/***/ "9cff":
-/***/ (function(module, exports) {
+/***/ "b8ea":
+/***/ (function(module, exports, __webpack_require__) {
-module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
+var dP = __webpack_require__("d3d8");
+var createDesc = __webpack_require__("0614");
+module.exports = __webpack_require__("f9a5") ? function (object, key, value) {
+ return dP.f(object, key, createDesc(1, value));
+} : function (object, key, value) {
+ object[key] = value;
+ return object;
};
/***/ }),
-/***/ "a450":
+/***/ "cc1d":
/***/ (function(module, exports, __webpack_require__) {
-var dP = __webpack_require__("bb8b").f;
-var FProto = Function.prototype;
-var nameRE = /^\s*function ([^ (]*)/;
-var NAME = 'name';
+"use strict";
-// 19.2.4.2 name
-NAME in FProto || __webpack_require__("26df") && dP(FProto, NAME, {
- configurable: true,
- get: function () {
- try {
- return ('' + this).match(nameRE)[1];
- } catch (e) {
- return '';
- }
- }
-});
+__webpack_require__("9f7e");
+var anObject = __webpack_require__("8cac");
+var $flags = __webpack_require__("e7a1");
+var DESCRIPTORS = __webpack_require__("f9a5");
+var TO_STRING = 'toString';
+var $toString = /./[TO_STRING];
-
-/***/ }),
-
-/***/ "a86f":
-/***/ (function(module, exports, __webpack_require__) {
-
-var isObject = __webpack_require__("9cff");
-module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
+var define = function (fn) {
+ __webpack_require__("a6d5")(RegExp.prototype, TO_STRING, fn, true);
};
-
-/***/ }),
-
-/***/ "baa7":
-/***/ (function(module, exports, __webpack_require__) {
-
-var core = __webpack_require__("76e3");
-var global = __webpack_require__("0b34");
-var SHARED = '__core-js_shared__';
-var store = global[SHARED] || (global[SHARED] = {});
-
-(module.exports = function (key, value) {
- return store[key] || (store[key] = value !== undefined ? value : {});
-})('versions', []).push({
- version: core.version,
- mode: __webpack_require__("3d8a") ? 'pure' : 'global',
- copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
-});
+// 21.2.5.14 RegExp.prototype.toString()
+if (__webpack_require__("0cc1")(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
+ define(function toString() {
+ var R = anObject(this);
+ return '/'.concat(R.source, '/',
+ 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
+ });
+// FF44- RegExp#toString has a wrong name
+} else if ($toString.name != TO_STRING) {
+ define(function toString() {
+ return $toString.call(this);
+ });
+}
/***/ }),
-/***/ "bb8b":
+/***/ "d3d8":
/***/ (function(module, exports, __webpack_require__) {
-var anObject = __webpack_require__("a86f");
-var IE8_DOM_DEFINE = __webpack_require__("83d3");
-var toPrimitive = __webpack_require__("5d10");
+var anObject = __webpack_require__("8cac");
+var IE8_DOM_DEFINE = __webpack_require__("25ae");
+var toPrimitive = __webpack_require__("2ab1");
var dP = Object.defineProperty;
-exports.f = __webpack_require__("26df") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
+exports.f = __webpack_require__("f9a5") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
@@ -1162,26 +1154,21 @@ exports.f = __webpack_require__("26df") ? Object.defineProperty : function defin
/***/ }),
-/***/ "d8b3":
+/***/ "da0b":
/***/ (function(module, exports) {
-var id = 0;
-var px = Math.random();
-module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
+module.exports = function (it) {
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
};
/***/ }),
-/***/ "de49":
-/***/ (function(module, exports, __webpack_require__) {
+/***/ "da27":
+/***/ (function(module, exports) {
-// 21.2.5.3 get RegExp.prototype.flags()
-if (__webpack_require__("26df") && /./g.flags != 'g') __webpack_require__("bb8b").f(RegExp.prototype, 'flags', {
- configurable: true,
- get: __webpack_require__("6bf8")
-});
+var core = module.exports = { version: '2.6.10' };
+if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
/***/ }),
@@ -1229,18 +1216,55 @@ if (__webpack_require__("26df") && /./g.flags != 'g') __webpack_require__("bb8b"
/***/ }),
-/***/ "e8d7":
+/***/ "e7a1":
/***/ (function(module, exports, __webpack_require__) {
-var isObject = __webpack_require__("9cff");
-var document = __webpack_require__("0b34").document;
-// typeof document.createElement is 'object' in old IE
-var is = isObject(document) && isObject(document.createElement);
-module.exports = function (it) {
- return is ? document.createElement(it) : {};
+"use strict";
+
+// 21.2.5.3 get RegExp.prototype.flags
+var anObject = __webpack_require__("8cac");
+module.exports = function () {
+ var that = anObject(this);
+ var result = '';
+ if (that.global) result += 'g';
+ if (that.ignoreCase) result += 'i';
+ if (that.multiline) result += 'm';
+ if (that.unicode) result += 'u';
+ if (that.sticky) result += 'y';
+ return result;
};
+/***/ }),
+
+/***/ "f341":
+/***/ (function(module, exports, __webpack_require__) {
+
+var core = __webpack_require__("da27");
+var global = __webpack_require__("3f8b");
+var SHARED = '__core-js_shared__';
+var store = global[SHARED] || (global[SHARED] = {});
+
+(module.exports = function (key, value) {
+ return store[key] || (store[key] = value !== undefined ? value : {});
+})('versions', []).push({
+ version: core.version,
+ mode: __webpack_require__("6cc2") ? 'pure' : 'global',
+ copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
+});
+
+
+/***/ }),
+
+/***/ "f9a5":
+/***/ (function(module, exports, __webpack_require__) {
+
+// Thank's IE8 for his funny defineProperty
+module.exports = !__webpack_require__("0cc1")(function () {
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
+});
+
+
/***/ })
/******/ });
diff --git a/lib/vue-aliplayer-v2.umd.min.js b/lib/vue-aliplayer-v2.umd.min.js
index fcb601d..37866d2 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 i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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")}({"05fd":function(e,t,n){e.exports=n("baa7")("native-function-to-string",Function.toString)},"065d":function(e,t,n){var r=n("bb8b"),i=n("5edc");e.exports=n("26df")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"0926":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"0b34":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)},"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("a450");var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:e.playerId}})},o=[];function a(e){return a="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},a(e)}n("4057");var s={name:"VueAliplayerV2",props:{options:{required:!1,type:[Object],default:function(){return null}},source:{required:!1,type:[String],default:null},cssLink:{required:!1,type:[String],default:"https://g.alicdn.com/de/prismplayer/2.9.7/skins/default/aliplayer-min.css"},scriptSrc:{required:!1,type:[String],default:"https://g.alicdn.com/de/prismplayer/2.9.7/aliplayer-min.js"}},data:function(){return{player:null,playerId:"player-".concat(Math.random().toString(36).substr(2).toLocaleUpperCase()),config:{id:null,width:"100%",autoplay:!0},events:["ready","play","pause","canplay","playing","ended","liveStreamStop","onM3u8Retry","hideBar","showBar","waiting","timeupdate","snapshoted","requestFullScreen","cancelFullScreen","error","startSeek","completeSeek"]}},watch:{source:function(){this.init()},options:{handler:function(){this.init()},deep:!0}},mounted:function(){var e=this;this.$nextTick((function(){e.init()}))},updated:function(){var e=this;this.$nextTick((function(){e.init()}))},methods:{init:function(){var e=this,t="app__aliplayer-min-css",n="app__aliplayer-min-js",r=document.getElementsByTagName("head"),i=document.getElementsByTagName("html"),o=document.getElementById(n),a=document.getElementById(t);if(!a){var s=document.createElement("link");s.type="text/css",s.rel="stylesheet",s.href=this.cssLink,s.id=t,r[0].appendChild(s)}o?this.initPlayer():(o=document.createElement("script"),o.type="text/javascript",o.id=n,o.src=this.scriptSrc,i[0].appendChild(o)),o.addEventListener("load",(function(){e.initPlayer()}))},initPlayer:function(){var e=this;if("undefined"!=typeof window.Aliplayer){var t=this.deepCloneObject(this.options);if(t)for(var n in t)this.config[n]=t[n];this.source&&(this.config.source=this.source),this.config.id=this.playerId,this.player&&this.player.dispose(),this.player=Aliplayer(this.config);var r=function(t){e.player&&e.player.on(e.events[t],(function(n){e.$emit(e.events[t],n)}))};for(var i in this.events)r(i)}},getPlayer:function(){return this.player},play:function(){this.player&&this.player.play()},pause:function(){this.player&&this.player.pause()},replay:function(){this.player&&this.player.replay()},seek:function(e){this.player&&this.player.seek(e)},getCurrentTime:function(){return this.player&&this.player.getCurrentTime()},getDuration:function(){return this.player&&this.player.getDuration()},getVolume:function(){return this.player&&this.player.getVolume()},setVolume:function(e){this.player&&this.player.setVolume(e)},loadByUrl:function(e,t){this.player&&this.player.loadByUrl(e,t)},replayByVidAndPlayAuth:function(e,t){this.player&&this.player.replayByVidAndPlayAuth(e,t)},replayByVidAndAuthInfo:function(e,t,n,r,i,o){this.player&&this.player.replayByVidAndAuthInfo(e,t,n,r,i,o)},setPlayerSize:function(e,t){this.player&&this.player.setPlayerSize(e,t)},setSpeed:function(e){this.player&&this.player.setSpeed(e)},setSanpshotProperties:function(e,t,n){this.player&&this.player.setSanpshotProperties(e,t,n)},requestFullScreen:function(){this.player&&this.player.fullscreenService&&this.player.fullscreenService.requestFullScreen()},cancelFullScreen:function(){this.player&&this.player.fullscreenService&&this.player.fullscreenService.cancelFullScreen()},getIsFullScreen:function(){return this.player&&this.player.fullscreenService&&this.player.fullscreenService.getIsFullScreen()},getStatus:function(){return this.player&&this.player.getStatus()},setLiveTimeRange:function(e,t){this.player&&this.player.liveShiftSerivce&&this.player.liveShiftSerivce.setLiveTimeRange(e,t)},setRotate:function(e){this.player&&this.player.setRotate(e)},getRotate:function(){return this.player&&this.player.getRotate()},setImage:function(e){this.player&&this.player.setImage(e)},dispose:function(){this.player&&this.player.dispose()},setCover:function(e){this.player&&this.player.setCover(e)},setProgressMarkers:function(e){this.player&&this.player.setProgressMarkers(e)},setPreviewTime:function(e){this.player&&this.player.setPreviewTime(e)},getPreviewTime:function(){return this.player&&this.player.getPreviewTime()},isPreview:function(){this.player&&this.player.isPreview()},off:function(e,t){this.player&&this.player.off(e,t)},deepCloneObject:function(e){var t=Array.isArray(e)?[]:{};if(e&&"object"===a(e))for(var n in e)e.hasOwnProperty(n)&&(e[n]&&"object"===a(e[n])?t[n]=this.deepCloneObject(e[n]):t[n]=e[n]);return t}},beforeDestroy:function(){this.dispose()}},u=s;function c(e,t,n,r,i,o,a,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}var l=c(u,i,o,!1,null,null,null),f=l.exports;f.install=function(e,t){t&&t.cssLink&&(f.props.cssLink.default=t.cssLink),t&&t.scriptSrc&&(f.props.scriptSrc.default=t.scriptSrc),e.component(f.name,f)},f.Player=f;var p=f;t["default"]=p},"26df":function(e,t,n){e.exports=!n("0926")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"3d8a":function(e,t){e.exports=!1},4057:function(e,t,n){"use strict";n("de49");var r=n("a86f"),i=n("6bf8"),o=n("26df"),a="toString",s=/./[a],u=function(e){n("84e8")(RegExp.prototype,a,e,!0)};n("0926")((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?u((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):s.name!=a&&u((function(){return s.call(this)}))},"4fd4":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"5d10":function(e,t,n){var r=n("9cff");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"5edc":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"6bf8":function(e,t,n){"use strict";var r=n("a86f");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"76e3":function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"83d3":function(e,t,n){e.exports=!n("26df")&&!n("0926")((function(){return 7!=Object.defineProperty(n("e8d7")("div"),"a",{get:function(){return 7}}).a}))},"84e8":function(e,t,n){var r=n("0b34"),i=n("065d"),o=n("4fd4"),a=n("d8b3")("src"),s=n("05fd"),u="toString",c=(""+s).split(u);n("76e3").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"9cff":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},a450:function(e,t,n){var r=n("bb8b").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("26df")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},a86f:function(e,t,n){var r=n("9cff");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},baa7:function(e,t,n){var r=n("76e3"),i=n("0b34"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("3d8a")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},bb8b:function(e,t,n){var r=n("a86f"),i=n("83d3"),o=n("5d10"),a=Object.defineProperty;t.f=n("26df")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},d8b3:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},de49:function(e,t,n){n("26df")&&"g"!=/./g.flags&&n("bb8b").f(RegExp.prototype,"flags",{configurable:!0,get:n("6bf8")})},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)},e8d7:function(e,t,n){var r=n("9cff"),i=n("0b34").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}}})}));
+(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 i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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("7cfd");var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:e.playerId}})},o=[];function a(e){return a="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},a(e)}function c(e){return c="function"===typeof Symbol&&"symbol"===a(Symbol.iterator)?function(e){return a(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":a(e)},c(e)}n("cc1d");var s={name:"VueAliplayerV2",props:{forbidFastForward:{required:!1,type:[Boolean],default:!1},options:{required:!1,type:[Object],default:function(){return null}},source:{required:!1,type:[String],default:null},cssLink:{required:!1,type:[String],default:"https://g.alicdn.com/de/prismplayer/2.9.20/skins/default/aliplayer-min.css"},scriptSrc:{required:!1,type:[String],default:"https://g.alicdn.com/de/prismplayer/2.9.20/aliplayer-min.js"}},data:function(){return{player:null,playerId:"player-".concat(Math.random().toString(36).substr(2).toLocaleUpperCase()),config:{id:null,width:"100%",autoplay:!0},events:["ready","play","pause","canplay","playing","ended","liveStreamStop","onM3u8Retry","hideBar","showBar","waiting","timeupdate","snapshoted","requestFullScreen","cancelFullScreen","error","startSeek","completeSeek"]}},watch:{source:function(){this.init()},forbidFastForward:function(){this.init()},options:{handler:function(){this.init()},deep:!0}},mounted:function(){var e=this;this.$nextTick((function(){e.init()}))},updated:function(){var e=this;this.$nextTick((function(){e.init()}))},methods:{handlerFastForward:function(){},init:function(){var e=this,t="app__aliplayer-min-css",n="app__aliplayer-min-js",r=document.getElementsByTagName("head"),i=document.getElementsByTagName("html"),o=document.getElementById(n),a=document.getElementById(t);if(!a){var c=document.createElement("link");c.type="text/css",c.rel="stylesheet",c.href=this.cssLink,c.id=t,r[0].appendChild(c)}o?this.initPlayer():(o=document.createElement("script"),o.type="text/javascript",o.id=n,o.src=this.scriptSrc,i[0].appendChild(o)),o.addEventListener("load",(function(){e.initPlayer()}))},initPlayer:function(){var e=this;if("undefined"!=typeof window.Aliplayer){var t=this.deepCloneObject(this.options);if(t)for(var n in t)this.config[n]=t[n];this.source&&(this.config.source=this.source),this.config.id=this.playerId,this.player&&this.player.dispose(),this.player=Aliplayer(this.config);var r=function(t){e.player&&e.player.on(e.events[t],(function(n){e.$emit(e.events[t],n)}))};for(var i in this.events)r(i);if(this.forbidFastForward){var o=0,a=0;this.player.on("timeupdate",(function(){var e=this.getCurrentTime();e-o>2?this.seek(o):(o=e,o>=a&&(a=o))}))}}},getPlayer:function(){return this.player},play:function(){this.player&&this.player.play()},pause:function(){this.player&&this.player.pause()},replay:function(){this.player&&this.player.replay()},seek:function(e){this.player&&this.player.seek(e)},getCurrentTime:function(){return this.player&&this.player.getCurrentTime()},getDuration:function(){return this.player&&this.player.getDuration()},getVolume:function(){return this.player&&this.player.getVolume()},setVolume:function(e){this.player&&this.player.setVolume(e)},loadByUrl:function(e,t){this.player&&this.player.loadByUrl(e,t)},replayByVidAndPlayAuth:function(e,t){this.player&&this.player.replayByVidAndPlayAuth(e,t)},replayByVidAndAuthInfo:function(e,t,n,r,i,o){this.player&&this.player.replayByVidAndAuthInfo(e,t,n,r,i,o)},setPlayerSize:function(e,t){this.player&&this.player.setPlayerSize(e,t)},setSpeed:function(e){this.player&&this.player.setSpeed(e)},setSanpshotProperties:function(e,t,n){this.player&&this.player.setSanpshotProperties(e,t,n)},requestFullScreen:function(){this.player&&this.player.fullscreenService&&this.player.fullscreenService.requestFullScreen()},cancelFullScreen:function(){this.player&&this.player.fullscreenService&&this.player.fullscreenService.cancelFullScreen()},getIsFullScreen:function(){return this.player&&this.player.fullscreenService&&this.player.fullscreenService.getIsFullScreen()},getStatus:function(){return this.player&&this.player.getStatus()},setLiveTimeRange:function(e,t){this.player&&this.player.liveShiftSerivce&&this.player.liveShiftSerivce.setLiveTimeRange(e,t)},setRotate:function(e){this.player&&this.player.setRotate(e)},getRotate:function(){return this.player&&this.player.getRotate()},setImage:function(e){this.player&&this.player.setImage(e)},dispose:function(){this.player&&this.player.dispose()},setCover:function(e){this.player&&this.player.setCover(e)},setProgressMarkers:function(e){this.player&&this.player.setProgressMarkers(e)},setPreviewTime:function(e){this.player&&this.player.setPreviewTime(e)},getPreviewTime:function(){return this.player&&this.player.getPreviewTime()},isPreview:function(){this.player&&this.player.isPreview()},off:function(e,t){this.player&&this.player.off(e,t)},deepCloneObject:function(e){var t=Array.isArray(e)?[]:{};if(e&&"object"===c(e))for(var n in e)e.hasOwnProperty(n)&&(e[n]&&"object"===c(e[n])?t[n]=this.deepCloneObject(e[n]):t[n]=e[n]);return t}},beforeDestroy:function(){this.dispose()}},u=s;function l(e,t,n,r,i,o,a,c){var s,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(s=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=s):i&&(s=c?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(u.functional){u._injectStyles=s;var l=u.render;u.render=function(e,t){return s.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,s):[s]}return{exports:e,options:u}}var f=l(u,i,o,!1,null,null,null),p=f.exports;p.install=function(e,t){t&&t.cssLink&&(p.props.cssLink.default=t.cssLink),t&&t.scriptSrc&&(p.props.scriptSrc.default=t.scriptSrc),e.component(p.name,p)},p.Player=p;var y=p;t["default"]=y},"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,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"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)},"4d2c":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"549d":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},6618:function(e,t,n){var r=n("da0b"),i=n("3f8b").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"6cc2":function(e,t){e.exports=!1},"6fe0":function(e,t,n){e.exports=n("f341")("native-function-to-string",Function.toString)},"7cfd":function(e,t,n){var r=n("d3d8").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("f9a5")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},"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}},"9f7e":function(e,t,n){n("f9a5")&&"g"!=/./g.flags&&n("d3d8").f(RegExp.prototype,"flags",{configurable:!0,get:n("e7a1")})},a6d5:function(e,t,n){var r=n("3f8b"),i=n("b8ea"),o=n("549d"),a=n("4d2c")("src"),c=n("6fe0"),s="toString",u=(""+c).split(s);n("da27").inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,c){var s="function"==typeof n;s&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(s&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:c?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,s,(function(){return"function"==typeof this&&this[a]||c.call(this)}))},b8ea:function(e,t,n){var r=n("d3d8"),i=n("0614");e.exports=n("f9a5")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},cc1d:function(e,t,n){"use strict";n("9f7e");var r=n("8cac"),i=n("e7a1"),o=n("f9a5"),a="toString",c=/./[a],s=function(e){n("a6d5")(RegExp.prototype,a,e,!0)};n("0cc1")((function(){return"/a/b"!=c.call({source:"a",flags:"b"})}))?s((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):c.name!=a&&s((function(){return c.call(this)}))},d3d8:function(e,t,n){var r=n("8cac"),i=n("25ae"),o=n("2ab1"),a=Object.defineProperty;t.f=n("f9a5")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(c){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},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)},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)},e7a1:function(e,t,n){"use strict";var r=n("8cac");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},f341:function(e,t,n){var r=n("da27"),i=n("3f8b"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("6cc2")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},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