master
xielei 2024-11-14 17:56:47 +08:00
parent bc57410c23
commit 4aa08a42c4
3 changed files with 27 additions and 4 deletions

View File

@ -30,7 +30,7 @@
<text>现场视频:</text>
<view class="" v-for="item in o.inspectVideos">
<video :src="item.url" style="width: 80px;height: 80px;margin: 5px;" :controls='false' :show-fullscreen-btn="true" :show-progress='false' :webkit-playsinline="true"></video>
<video :src="item.url" style="width: 80px;height: 80px;margin: 5px;" id='videoww' :controls='false' :show-fullscreen-btn="true" :show-progress='false' :webkit-playsinline="true" @click="fullScreen('videoww')"></video>
</view>
</view>
<view style="display: flex;" class="itemEve">
@ -45,7 +45,7 @@
<image :src="item.url" style="width: 80px;height: 80px;margin: 5px;" @click="previewImage(item)"></image>
</view>
</view>
<view style="" v-if="o.handleVideos.length" class="itemEve" >
<view style="" v-if="IndexList.find(i=>i==index)" class="itemEve" >
<text>处理视频:</text>
<view class="" v-for="item in o.handleVideos">
@ -201,6 +201,11 @@
}
},
methods: {
fullScreen(k){
console.log(k,'');
let videoContext = uni.createVideoContext(k, this)
videoContext.requestFullScreen()
},
open(e) {
console.log('open', e,456789)
this.IndexList=e

File diff suppressed because one or more lines are too long

View File

@ -36705,6 +36705,7 @@ var render = function () {
$33,
"a-src"
),
id: "videoww",
controls: false,
"show-fullscreen-btn": true,
"show-progress": false,
@ -36717,6 +36718,13 @@ var render = function () {
"-" +
$33,
},
on: {
click: function ($event) {
return _vm.$handleViewEvent(
$event
)
},
},
}),
],
1