|
@@ -8,12 +8,15 @@
|
|
|
<i class="icon-line" />
|
|
|
<div class="text">视频</div>
|
|
|
</div>
|
|
|
+ <!--
|
|
|
<HKVideo
|
|
|
v-if="!!video1"
|
|
|
:dot_data="video1"
|
|
|
autoplay
|
|
|
style="height: 200px"
|
|
|
/>
|
|
|
+ -->
|
|
|
+ <HlsPlayer v-if="!!video1" :src="video1" style="height: 200px"/>
|
|
|
</div>
|
|
|
<div class="box">
|
|
|
<div class="card-header">
|
|
@@ -49,6 +52,7 @@
|
|
|
import { ref } from "vue";
|
|
|
import { ElTable, ElTableColumn } from "element-plus";
|
|
|
import {getChemicalcompanyVideo, getVideoInfo} from "@/api/disasterRiskMonitor/rainfall";
|
|
|
+import { getProxyVideoUrlById } from '@/api/videoMonitor';
|
|
|
|
|
|
const route = useRoute();
|
|
|
const latitude = ref(route.query.latitude);
|
|
@@ -67,7 +71,13 @@ queryParams.location = "POINT(" + longitude.value + " " + latitude.value + ")";
|
|
|
const getVideo = () => {
|
|
|
getChemicalcompanyVideo(videoCode.value).then(res => {
|
|
|
videoList.value = res.data;
|
|
|
- video1.value = res.data[0];
|
|
|
+ // video1.value = res.data[0];
|
|
|
+
|
|
|
+ // 转为互联网访问的地址
|
|
|
+ getProxyVideoUrlById(res.data[0].video_code).then((res)=>{
|
|
|
+ console.log('video_url:', res.data);
|
|
|
+ video1.value = res.data;
|
|
|
+ });
|
|
|
});
|
|
|
// getVideoInfo(queryParams).then(res => {
|
|
|
// res.data.list.forEach(item => {
|