更新版本号

This commit is contained in:
zhouliujun 2022-05-12 14:20:44 +08:00
parent d7495c1469
commit 31441d7773
4 changed files with 102 additions and 99 deletions

View File

@ -219,6 +219,13 @@ components: {
```javascript ```javascript
props:{ props:{
forbidFastForward: { //禁止拖拽快进
required: false,
type: [Boolean],
default: false
},
options: { //配置项 (options.source 不支持动态切换,需要动态切换请直接使用source) options: { //配置项 (options.source 不支持动态切换,需要动态切换请直接使用source)
required: false, required: false,
type: [Object], 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"网友的反馈与建议. > v1.2.9 修正部分默认属性, 感谢"Schean17"网友的反馈与建议.

View File

@ -1,6 +1,6 @@
{ {
"name": "vue-aliplayer-v2", "name": "vue-aliplayer-v2",
"version": "1.3.0", "version": "1.3.1",
"author": "yxs", "author": "yxs",
"description": "感谢每一位支持开源的朋友. 这是一个基于Alipayer 开发并封装成vue组件的集成播放器.可播放rtmp,m3u8,mp4....视频.除支持直播流与点播的基础功能外,也支持视频的加密播放、清晰度切换、直播时移等业务场景", "description": "感谢每一位支持开源的朋友. 这是一个基于Alipayer 开发并封装成vue组件的集成播放器.可播放rtmp,m3u8,mp4....视频.除支持直播流与点播的基础功能外,也支持视频的加密播放、清晰度切换、直播时移等业务场景",
"main": "lib/vue-aliplayer-v2.umd.min.js", "main": "lib/vue-aliplayer-v2.umd.min.js",

View File

@ -5,7 +5,7 @@
export default { export default {
name: 'VueAliplayerV2', name: 'VueAliplayerV2',
props: { props: {
forbidFastForward:{ forbidFastForward: { //
required: false, required: false,
type: [Boolean], type: [Boolean],
default: false default: false
@ -23,12 +23,12 @@ export default {
cssLink: { //css cssLink: { //css
required: false, required: false,
type: [String], 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, required: false,
type: [String], 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 () { data () {
@ -217,9 +217,9 @@ export default {
}); });
} }
//
if (this.forbidFastForward) { if (this.forbidFastForward) {
let last = 0, max_time = 0; let last = 0, max_time = 0;
this.player.on('timeupdate', function () { this.player.on('timeupdate', function () {
let current = this.getCurrentTime(); let current = this.getCurrentTime();
@ -231,12 +231,7 @@ export default {
max_time = last; max_time = last;
} }
} }
});
})
} }
//off //off