开源版本,视频直播功能

This commit is contained in:
gx_ma
2024-07-09 12:01:26 +08:00
parent cbd545f309
commit ee78bf6efc
3 changed files with 2 additions and 23 deletions

View File

@@ -562,7 +562,6 @@ export default {
tabChange(panel) {
if (this.form.deviceType == 3 && panel.name != 'deviceReturn') {
if (panel.name === 'videoLive') {
this.$refs.deviceVideo.destroy();
if (this.channelId) {
this.$refs.deviceLiveStream.channelId = this.channelId;
this.$refs.deviceLiveStream.changeChannel();
@@ -570,11 +569,6 @@ export default {
if (this.$refs.deviceLiveStream.channelId) {
this.$refs.deviceLiveStream.changeChannel();
}
} else if (panel.name === 'deviceVideo') {
this.$refs.deviceLiveStream.destroy();
if (this.$refs.deviceVideo.channelId && this.$refs.deviceVideo.queryDate) {
this.$refs.deviceVideo.loadDevRecord();
}
} else if (panel.name === 'sipChannel') {
this.$refs.deviceChannel.getList();
}
@@ -584,12 +578,6 @@ export default {
this.$refs.deviceLiveStream.closeDestroy(false);
}
}
//关闭录像流
if (panel.name !== 'deviceVideo') {
if(this.$refs.deviceVideo.playing) {
this.$refs.deviceVideo.closeDestroy();
}
}
}
this.$nextTick(() => {
// 获取监测统计数据