| | |
| | | </div> |
| | | </div> |
| | | <div class="item video1" v-show="isShowVideo.video1"> |
| | | <video-loading v-show="isShowVideoLoading.video1"></video-loading> |
| | | <div class="select" v-show="isShowSelect.video1"> |
| | | <el-select size="small" v-model="monitor.type1" @change="((val) => { navClick(val, 1) })" placeholder="请选择" |
| | | ref="videoSelect1"> |
| | |
| | | <div class="outline" v-show="isShowOutline.video1">设备离线中…</div> |
| | | </div> |
| | | <div class="item video2" v-show="isShowVideo.video2"> |
| | | <video-loading v-show="isShowVideoLoading.video2"></video-loading> |
| | | <div class="select" v-show="isShowSelect.video2"> |
| | | <el-select size="small" v-model="monitor.type2" @change="((val) => { navClick(val, 2) })" placeholder="请选择" |
| | | ref="videoSelect2"> |
| | |
| | | <div class="outline" v-show="isShowOutline.video2">设备离线中…</div> |
| | | </div> |
| | | <div class="item video3" v-show="isShowVideo.video3"> |
| | | <video-loading v-show="isShowVideoLoading.video3"></video-loading> |
| | | <div class="select" v-show="isShowSelect.video3"> |
| | | <el-select size="small" v-model="monitor.type3" @change="((val) => { navClick(val, 3) })" placeholder="请选择" |
| | | ref="videoSelect3"> |
| | |
| | | <div class="outline" v-show="isShowOutline.video3">设备离线中…</div> |
| | | </div> |
| | | <div class="item video4" v-show="isShowVideo.video4"> |
| | | <video-loading v-show="isShowVideoLoading.video4"></video-loading> |
| | | <div class="select" v-show="isShowSelect.video4"> |
| | | <el-select size="small" v-model="monitor.type4" @change="((val) => { navClick(val, 4) })" placeholder="请选择" |
| | | ref="videoSelect4"> |
| | |
| | | <div class="outline" v-show="isShowOutline.video4">设备离线中…</div> |
| | | </div> |
| | | <div class="item video5" v-show="isShowVideo.video5"> |
| | | <video-loading v-show="isShowVideoLoading.video5"></video-loading> |
| | | <div class="select" v-show="isShowSelect.video5"> |
| | | <el-select size="small" v-model="monitor.type5" @change="((val) => { navClick(val, 5) })" placeholder="请选择" |
| | | ref="videoSelect5"> |
| | |
| | | <div class="outline" v-show="isShowOutline.video5">设备离线中…</div> |
| | | </div> |
| | | <div class="item video6" v-show="isShowVideo.video6"> |
| | | <video-loading v-show="isShowVideoLoading.video6"></video-loading> |
| | | <div class="select" v-show="isShowSelect.video6"> |
| | | <el-select size="small" v-model="monitor.type6" @change="((val) => { navClick(val, 6) })" placeholder="请选择" |
| | | ref="videoSelect6"> |
| | |
| | | <div class="outline" v-show="isShowOutline.video6">设备离线中…</div> |
| | | </div> |
| | | <div class="item video7" v-show="isShowVideo.video7"> |
| | | <video-loading v-show="isShowVideoLoading.video7"></video-loading> |
| | | <div class="select" v-show="isShowSelect.video7"> |
| | | <el-select size="small" v-model="monitor.type7" v-show="isShowSelect.video7" |
| | | @change="((val) => { navClick(val, 7) })" placeholder="请选择" ref="videoSelect7"> |
| | |
| | | <div class="outline" v-show="isShowOutline.video7">设备离线中…</div> |
| | | </div> |
| | | <div class="item video8" v-show="isShowVideo.video8"> |
| | | <video-loading v-show="isShowVideoLoading.video8"></video-loading> |
| | | <div class="select" v-show="isShowSelect.video8"> |
| | | <el-select size="small" v-model="monitor.type8" @change="((val) => { navClick(val, 8) })" placeholder="请选择" |
| | | ref="videoSelect8"> |
| | |
| | | video7: false, |
| | | video8: false, |
| | | }, |
| | | isShowVideoLoading: { |
| | | video1: false, |
| | | video2: false, |
| | | video3: false, |
| | | video4: false, |
| | | video5: false, |
| | | video6: false, |
| | | video7: false, |
| | | video8: false, |
| | | }, |
| | | chooseRangeColor: '#FF0000', |
| | | editRangeVisible: false, |
| | | lineWidth: '', |
| | |
| | | // }) |
| | | // }, |
| | | |
| | | playVideoList (flvItemPlayer, flvUrl, videoEleName) { |
| | | playVideoList (flvItemPlayer, flvUrl, videoEleName,index) { |
| | | if (this.flvListPlayer[flvItemPlayer] != null) { |
| | | this.flvListPlayer[flvItemPlayer].pause() |
| | | this.flvListPlayer[flvItemPlayer].unload() |
| | |
| | | } |
| | | |
| | | if (flvjs.isSupported() && flvUrl != 'nodata') { |
| | | this.isShowVideoLoading[`video${index}`] = false |
| | | let videoElement = document.getElementById(videoEleName) |
| | | this.flvListPlayer[flvItemPlayer] = flvjs.createPlayer({ |
| | | type: 'flv', |
| | |
| | | this.monitor[`type${args}`] = this.monitorOption[val].item.name |
| | | if (this.monitorOption[val].item.status == 0) { |
| | | this.isShowOutline[`video${args}`] = true |
| | | }else{ |
| | | this.isShowOutline[`video${args}`] = false |
| | | this.isShowVideoLoading[`video${args}`] = true |
| | | } |
| | | this.getDevices(this.monitorOption[val].item.channelId).then(res => { |
| | | |
| | | this.playVideoList(`flvPlayer${args}`, `${res}`, `videoElement${args}`) |
| | | this.playVideoList(`flvPlayer${args}`, `${res}`, `videoElement${args}`,`${args}`) |
| | | }) |
| | | }, |
| | | |
| | |
| | | this.monitor[`type${ind}`] = item.name |
| | | if (item.status == 0) { |
| | | this.isShowOutline[`video${ind}`] = true |
| | | }else{ |
| | | this.isShowVideoLoading[`video${ind}`] = true |
| | | } |
| | | |
| | | this.getDevices(item.channelId).then(res => { |
| | | this.playVideoList(`flvPlayer${ind}`, `${res}`, `videoElement${ind}`) |
| | | this.playVideoList(`flvPlayer${ind}`, `${res}`, `videoElement${ind}`,`${ind}`) |
| | | }) |
| | | } |
| | | }) |
| | |
| | | } |
| | | |
| | | this.getDevices(item.channelId).then(res => { |
| | | this.playVideoList(`flvPlayer${ind}`, `${res}`, `videoElement${ind}`) |
| | | this.playVideoList(`flvPlayer${ind}`, `${res}`, `videoElement${ind}`,`${ind}`) |
| | | }) |
| | | } |
| | | }) |