Compare commits

..

2 Commits

Author SHA1 Message Date
chenchenzai 6cfde21605 Merge branch 'hi-ucs-dev' of http://192.168.124.50:3000/wuhongjian/hi-ucs into hi-ucs-dev 2022-11-22 19:49:47 +08:00
chenchenzai dbdd8243cb 个人中心视频预览 2022-11-22 19:49:40 +08:00
1 changed files with 20 additions and 3 deletions

View File

@ -193,7 +193,7 @@
v-if="
item.approveStatus == '通过' && whoShow1.itShowXiHaiAn
"
@click.stop="openVideo(val)"
@click.stop="getVideoUrl(val)"
>
视频预览
</a-button>
@ -280,7 +280,7 @@
wrapClassName="single-preview-modal"
v-model:visible="visible"
title="视频预览"
:width="960"
:width="1000"
destroyOnClose
>
<template #footer></template>
@ -299,7 +299,8 @@
<div class="waterMark waterMark-right-bottom">
{{ userInfo.realNameShow }}
</div>
<vue3VideoPlay v-bind="options" />
<!-- <vue3VideoPlay v-bind="options" /> -->
<h5-player :video-url="videoUrl"></h5-player>
</div>
</div>
</a-modal>
@ -313,6 +314,8 @@
import { useRouter } from 'vue-router'
import { getStreamByChannelCode } from '@/api/videoSurveillance'
import { getUser } from '@/api/home'
import H5Player from '@/views/home/components/H5Player.vue'
import {getCameraLiveStream} from '@/api/file'
const router = useRouter()
const backUrl = ref(window.SITE_CONFIG.apiURL + '/')
const props = defineProps({
@ -511,6 +514,20 @@
}
}
}
const videoUrl = ref('')
//
const getVideoUrl = (data) =>{
debugger
let param = data;
getCameraLiveStream(param).then((res) => {
//console.log('555555rrrrr',res)
if(res.data.data){
videoUrl.value = res.data.data.url;
}
visible.value = true
})
}
//
const openVideo = (item) => {
console.log('打开视频', item)