<!-- * @Description: In User Settings Edit * @Author: your name * @Date: 2019-05-21 15:08:37 * @LastEditTime: 2019-09-19 13:55:57 * @LastEditors: Please set LastEditors --> # grouper-media-client
npm install grouper-media-client
npm install grouper-media-client -S
`
vue-conponent
`
// videoPage
:sidename="sidename" // "single"||"left"|| "right" 可以为三个中一个
:col="col" // number 列数
:row="row" // number 行数
:first="first" // number 从第几个序号开始
:initVideo="initVideo" // async Function 初始化视频列表(可选)
:lockVideo="lockVideo"// async Function 锁定视频通道(可选)
:getLockVideo="getLockVideo"// async Function 获取锁定的视频通道(可选)
>
// singleVideo
// 不支持动态绑定,必须销毁组件重新生成
:path="url" // string rtsp地址
>
// method using
// create
let infovideo = Vue.extend(videoVue);
this.clusterVideoWindow = new infovideo({
propsData: {
path: prop.url
}
});
let ele = document.createElement("div");
this.$refs.videoChange.appendChild(ele);
this.clusterVideoWindow.$mount(
this.$refs.videoChange.querySelector("div")
);
// destory
this.clusterVideoWindow.$destroy();
this.clusterVideoWindow = null;
let ele = this.$refs.videoChange.querySelector("div");
this.$refs.videoChange.removeChild(ele);
``