cz-video-player
v1.0.15
Published
基于vue-video-player的二次封装,使用flv | hls | rtmp | mp4这四种流更方便
Downloads
13
Readme
cz-video-player
使用方法:
main.js输入
import CzVideoPlayer from "cz-video-player";
Vue.use(CzVideoPlayer);
在任意vue文件中:
<CzVideoPlayer src="rtmp://mobliestream.c3tv.com:554/live/goodtv.sdp" type="rtmp" width="560px" height="350px" />
props 说明:
1.简单使用传递type和src即可,本插件已经初步集成 type: "flv" | "hls" | "rtmp" | "mp4"
2.如果初步集成的四种流类型不符合您的需求,可以传递 "playerOptions",数据结构同vue-video-player接收的参数,来构造您的需求
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint