1.0.10 • Published 6 years ago

vv-player v1.0.10

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

vv-player

一个基于vue2.0+的video播放器组件

  • 因为在npm看到的vue的video组件都不合心意(文档不全,import之后使用感觉不怎么样的),所以花了两周多的时间研究了video的api并用vue封装了一下,用过好用的话记得给个star!!!

仓库地址:https://github.com/luqihao/vue-h5-video-player

demo地址:https://luqihao.github.io/vue-h5-video-player/dist

1. 安装

npm install vv-player --save

2. 使用方法

<template>
  <player/>
</template>

<script>
  import player from 'vv-player'
  import Vue from 'vue'
  Vue.use(player)
</script>

3. 接受参数(props):

参数名描述默认
src视频地址http://jq22com.qiniudn.com/jq22-sp.mp4
width视频容器宽度700
height视频容器高度400

4. 浏览器兼容性(因为使用了flex布局,所以ie兼容性比较差,还有监听全屏切换事件只有ie11支持):

浏览器兼容性
IE11+
Chrome
Edge
Firefox
Opera
safari

5. 图片展示

vv-player

vv-player

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago