mirror of
https://github.com/langyuxiansheng/vue-aliplayer-v2.git
synced 2025-04-06 03:57:55 +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.6 优化beforeDestroy() 部分的代码.
|
||||||
|
|
||||||
> v1.2.5 更换默认的播放器SDK版本2.8.2 => 2.9.0,2.8.2的版本存在多个播放器同时播放直播流异常的bug,增加了全局SDK版本配置,可以在Vue.use()的时候进行配置.
|
> 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>
|
<span class="source-label">输入播放源(支持动态切换):</span>
|
||||||
<input class="source-input" type="text" v-model="source">
|
<input class="source-input" type="text" v-model="source">
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -44,13 +58,14 @@ export default {
|
|||||||
return {
|
return {
|
||||||
options: {
|
options: {
|
||||||
// source:'//player.alicdn.com/video/aliyunmedia.mp4',
|
// source:'//player.alicdn.com/video/aliyunmedia.mp4',
|
||||||
isLive: true, //切换为直播流的时候必填
|
isLive: !true, //切换为直播流的时候必填
|
||||||
// format: 'm3u8' //切换为直播流的时候必填
|
useFlashPrism: false, //指定为flash
|
||||||
|
disableSeek: true //禁用进度条的Seek,默认值为false
|
||||||
},
|
},
|
||||||
source: '//player.alicdn.com/video/aliyunmedia.mp4',
|
source: '//player.alicdn.com/video/aliyunmedia.mp4',
|
||||||
// source: '//ivi.bupt.edu.cn/hls/cctv1.m3u8',
|
// source: '//ivi.bupt.edu.cn/hls/cctv1.m3u8',
|
||||||
show: true,
|
show: true,
|
||||||
isShowMultiple: false
|
isShowMultiple: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -124,7 +139,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.source-box{
|
.source-box{
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 10px;
|
||||||
.source-label{
|
.source-label{
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vue-aliplayer-v2",
|
"name": "vue-aliplayer-v2",
|
||||||
"version": "1.2.6",
|
"version": "1.2.7",
|
||||||
"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",
|
||||||
|
@ -18,12 +18,12 @@ export default {
|
|||||||
cssLink:{ //css版本源
|
cssLink:{ //css版本源
|
||||||
required: false,
|
required: false,
|
||||||
type: [String],
|
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版本源
|
scriptSrc:{ //js版本源
|
||||||
required: false,
|
required: false,
|
||||||
type: [String],
|
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 () {
|
data () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user