1.0.15 • Published 5 months ago

vue-video-group-component v1.0.15

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

vue-video-group-component

version license

安装

npm install vue-video-group-component

启动

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

vue-video-group-component 简介

一个基于(vue2) element-ui 与 LivePlayer H5 播放器二次封装的视频组组件

属性

cameraList

cameraList 摄像头数据 Array 默认值:[] 数组格式参考 element-ui 树形控件数据格式,目前只支持默认格式不支持自配字段

videoclass

videoclass 栅格样式 String 默认值:"padding-bottom: 46%;position: relative; margin: 0px auto;"

videoTitle

videoTitle 左侧树上方标题 String 默认值:"树标题"

isRadio

isRadio 是否展示分屏 Boolean 默认值:true

videoTitle

videoTitle 视频右上角显示的标题 String 默认值:""

autoplay

autoplay 自动播放 Boolean 默认值:true

controls

controls 显示播放器控制栏 Boolean 默认值:true

loop

loop 是否循环播放 Boolean 默认值:true

live

live 视频右上角显示的标题 Boolean 默认值:true

fluent

fluent 流畅模式 默认值:true

stretch

stretch 是否拉伸 默认值:true

方法

onStateFilterate

@onStateFilterate 状态值变更方法 回调参数:cameraStateList 值:['online','offline'],[]

getCameraNode

@getCameraNode 树节点点击回调 回调参数:data 值:当前点击节点的值

setVideoProperties

setVideoProperties 设置选中视频属性并播放 参数:data 属性数据
_ @param {Boolean} data.PTZStatus 是否为云台设备
_ @param {String} data.URL 播放地址

controlPtz

controlPtz 云台按钮点击事件回调函数
@param {*} 回调参数:type 类型:up,down,left,right

注意

目前vue-video-group-component只适用于vue2的项目,后续会搞vue3的

vue-video-group-component组件基于element-ui 与 LivePlayer H5 播放器进行的二次封装,在使用前请确保项目中已安装element-iu以及LivePlayer H5极其相关配置

element-uihttps://element.eleme.cn/#/zh-CN LivePlayerH5https://www.liveqing.com/docs/manuals/LivePlayer.html#%E5%AE%89%E8%A3%85

1.0.15

5 months ago

1.0.14

5 months ago

1.0.13

5 months ago

1.0.12

5 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.9

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.3

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago