husq
2023-10-13 3eb5cea015d625d84920bb74f953fd2a58018966
取消关闭直播
1 files modified
12 ■■■■ changed files
src/components/GMap.vue 12 ●●●● patch | view | raw | blame | history
src/components/GMap.vue
@@ -870,6 +870,13 @@
    // 关闭窗口
    const closeOsdWindow = () => {
      store.commit('SET_OSD_VISIBLE_INFO', false)
      showAircraft.value = false
      aircrafIndex.value = -1
      aircraftUrl.value = ''
      showMonitor.value = false
      airPortUrl.value = ''
      airPortOption.value = false
      showMonitor.value = false
    }
    // 打开监控权限
@@ -878,7 +885,7 @@
      if (showMonitor.value) {
        loadVideo()
      } else {
        onClose()
        // onClose()
      }
    }
    // 打开飞机监控
@@ -894,7 +901,7 @@
      if (showAircraft.value) {
        loadDroneVideo(type)
      } else {
        closeFly()
        // closeFly()
      }
    }
    // 加载该设备的视频信息
@@ -1039,7 +1046,6 @@
      const videoId = deviceInfo.dock.basic_osd?.sub_device?.device_sn + '/' + aircraSelected.value + '/' + 'normal-0'
      const streamId = deviceInfo.dock.basic_osd?.sub_device?.device_sn + '-' + aircraSelected.value + '-' + 'normal-0'
      const liveURL = config.rtmpURL + streamId
      console.log('飞机设备播放事件触发')
      await startLivestream({
        url: liveURL,
        video_id: videoId,