This commit is contained in:
zhouliujun 2020-12-02 11:11:36 +08:00
parent 178d0565bd
commit b864b31980
4 changed files with 26 additions and 9 deletions

View File

@ -412,6 +412,8 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
## 更新日志
> v1.2.7 更换底层默认sdk版本为2.9.1的版本.
> v1.2.6 优化beforeDestroy() 部分的代码.
> v1.2.5 更换默认的播放器SDK版本2.8.2 => 2.9.0,2.8.2的版本存在多个播放器同时播放直播流异常的bug,增加了全局SDK版本配置,可以在Vue.use()的时候进行配置.

View File

@ -34,6 +34,20 @@
<span class="source-label">输入播放源(支持动态切换):</span>
<input class="source-input" type="text" v-model="source">
</div>
<div class="source-box">
<span class="source-label">指定为flash:</span>
<select v-model="options.useFlashPrism">
<option :value="true"></option>
<option :value="false"></option>
</select>
</div>
<div class="source-box">
<span class="source-label">禁止用户拖动(仅flash有效):</span>
<select v-model="options.disableSeek">
<option :value="true"></option>
<option :value="false"></option>
</select>
</div>
</div>
</template>
<script>
@ -44,13 +58,14 @@ export default {
return {
options: {
// source:'//player.alicdn.com/video/aliyunmedia.mp4',
isLive: true, //
// format: 'm3u8' //
isLive: !true, //
useFlashPrism: false, //flash
disableSeek: true //Seekfalse
},
source: '//player.alicdn.com/video/aliyunmedia.mp4',
// source: '//ivi.bupt.edu.cn/hls/cctv1.m3u8',
show: true,
isShowMultiple: false
isShowMultiple: false,
}
},
@ -124,7 +139,7 @@ export default {
}
.source-box{
padding: 5px 10px;
margin-bottom: 20px;
margin-bottom: 10px;
.source-label{
margin-right: 20px;
font-size: 16px;

View File

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

View File

@ -18,12 +18,12 @@ export default {
cssLink:{ //css
required: false,
type: [String],
default: `https://g.alicdn.com/de/prismplayer/2.9.0/skins/default/aliplayer-min.css`
default: `https://g.alicdn.com/de/prismplayer/2.9.1/skins/default/aliplayer-min.css`
},
scriptSrc:{ //js
required: false,
type: [String],
default: `https://g.alicdn.com/de/prismplayer/2.9.0/aliplayer-min.js`
default: `https://g.alicdn.com/de/prismplayer/2.9.1/aliplayer-min.js`
}
},
data () {