Skip to content

基于vue3的video组件使用于MP4,m3u8,rtmp

Notifications You must be signed in to change notification settings

LiShouHai/l-vue3-video

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue 项目名称

vue3-video

介绍

这是一个基于 vue3 写的 video 插件,可以传入 m3u8,mp4,rtmp 格式,自动转换播放,切记如果使用 rtmp 格式的话需要在支持 flash 的浏览器, 2021 年 flash 就停止使用了在浏览器,强制取消,需要使用的请下载 flash 官方浏览器( https://browser.flash.cn/ )并下载 flash 插件(https://www.flash.cn/download-wins)

参数

videoSrc isautoplay posterSrc closeVideo
video 的 url 是否自动播放,数据为rtmp强制为true 默认false video封面 是否关闭vodeo,默认false

安装

确保你已经安装了 Node.js 和 npm。

可以使用测试地址
https://sdk-release.qnsdk.com/VID_20220207_144828.mp4
rtmp://liteavapp.qcloud.com/live/liteavdemoplayerstreamid
http://cdn3.toronto360.tv:8081/toronto360/hd/playlist.m3u8
# 克隆项目
git clone https://github.com/yanbobo-ONE/l-vue3-video.git
npm i l-vue3-audio

About

基于vue3的video组件使用于MP4,m3u8,rtmp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 67.7%
  • Vue 22.7%
  • SCSS 5.4%
  • JavaScript 3.2%
  • HTML 1.0%