mirror of
https://github.com/langyuxiansheng/vue-aliplayer-v2.git
synced 2025-04-05 19:41:39 +08:00
更新
This commit is contained in:
parent
178d0565bd
commit
b864b31980
@ -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()的时候进行配置.
|
||||
|
@ -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 //禁用进度条的Seek,默认值为false
|
||||
},
|
||||
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;
|
||||
|
@ -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": {
|
||||
|
@ -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 () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user