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