Compare commits

..

No commits in common. "6cfde2160513529e8df70925e7d0bdc0914feb6b" and "c08980a5319c2c0ea1e02024c3d869d1647b14a9" have entirely different histories.

1 changed files with 3 additions and 20 deletions

View File

@ -193,7 +193,7 @@
v-if="
item.approveStatus == '通过' && whoShow1.itShowXiHaiAn
"
@click.stop="getVideoUrl(val)"
@click.stop="openVideo(val)"
>
视频预览
</a-button>
@ -280,7 +280,7 @@
wrapClassName="single-preview-modal"
v-model:visible="visible"
title="视频预览"
:width="1000"
:width="960"
destroyOnClose
>
<template #footer></template>
@ -299,8 +299,7 @@
<div class="waterMark waterMark-right-bottom">
{{ userInfo.realNameShow }}
</div>
<!-- <vue3VideoPlay v-bind="options" /> -->
<h5-player :video-url="videoUrl"></h5-player>
<vue3VideoPlay v-bind="options" />
</div>
</div>
</a-modal>
@ -314,8 +313,6 @@
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({
@ -514,20 +511,6 @@
}
}
}
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)