1.2.6 • Published 3 years ago
neumedia-video-player-m v1.2.6
移动端H5视频播放器
H5端视频播放器,播放视频格式 mp4
。
更新历史
版本号 | 作者 | 更新记录 | 更新时间 |
---|---|---|---|
1.0 | huang.liang@neusoft.com | 初始版本 | 2020.07.31 |
导入
import VideoPlayer from '../components/VideoPlayer/VideoPlayer';
export default {
components: {
VideoPlayer
}
}
使用
<video-player
src="http://tbwysx.cn/test/oceans.mp4"
poster="http://tbwysx.cn/test/oceans.png"
width="100vw"
aspect="16:9"
></video-player>
API
Props
说明 | 说明 | 类型 | 默认值 |
---|---|---|---|
src | 音频资源url | String | '' |
poster | 封面图片url | String | '' |
width | 宽度 | String, Number | 100vw |
aspect | 比例 | String | 16:9 |