mirror of
https://github.com/langyuxiansheng/vue-aliplayer-v2.git
synced 2025-09-04 05:59:46 +08:00
更新版本号
This commit is contained in:
parent
d7495c1469
commit
31441d7773
12
README.md
12
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"网友的反馈与建议.
|
||||
|
||||
|
@ -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",
|
||||
|
@ -5,7 +5,7 @@
|
||||
export default {
|
||||
name: 'VueAliplayerV2',
|
||||
props: {
|
||||
forbidFastForward:{
|
||||
forbidFastForward: { //禁止拖拽快进
|
||||
required: false,
|
||||
type: [Boolean],
|
||||
default: false
|
||||
@ -23,12 +23,12 @@ export default {
|
||||
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版本源
|
||||
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 () {
|
||||
@ -217,9 +217,9 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
//开启禁止拖拽快进
|
||||
if (this.forbidFastForward) {
|
||||
|
||||
|
||||
let last = 0, max_time = 0;
|
||||
this.player.on('timeupdate', function () {
|
||||
let current = this.getCurrentTime();
|
||||
@ -231,12 +231,7 @@ export default {
|
||||
max_time = last;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
//通过播放器实例的off方法取消订阅
|
||||
|
Loading…
x
Reference in New Issue
Block a user