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.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()的时候进行配置.

View File

@ -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 //Seekfalse
}, },
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;

View File

@ -1,9 +1,9 @@
{ {
"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",
"private": false, "private": false,
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {

View File

@ -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 () {