视频圈

This commit is contained in:
Mr.jiang 2024-07-26 10:31:05 +08:00
parent 17a53c596a
commit 23b83afc8f
3 changed files with 10 additions and 3 deletions

View File

@ -232,11 +232,14 @@
<video <video
id="myVideo" id="myVideo"
style="width: 100%;height: 100%;" style="width: 100%;height: 100%;"
:loop="true"
:muted="false"
:show-fullscreen-btn='false' :show-fullscreen-btn='false'
:enable-play-gesture='true' :enable-play-gesture='true'
:autoplay="false" :autoplay="false"
:show-play-btn='false' :show-play-btn='false'
:show-center-play-btn='false' :show-center-play-btn='false'
:http-cache="true"
@click="jieshu" @click="jieshu"
:src="filePath"></video> :src="filePath"></video>
<view class="videoConten">{{contentVideo}}</view> <view class="videoConten">{{contentVideo}}</view>

View File

@ -113,11 +113,14 @@
<video <video
id="myVideo" id="myVideo"
style="width: 100%;height: 100%;" style="width: 100%;height: 100%;"
:loop="true"
:muted="false"
:show-fullscreen-btn='false' :show-fullscreen-btn='false'
:enable-play-gesture='true' :enable-play-gesture='true'
:autoplay="false" :autoplay="false"
:show-play-btn='false' :show-play-btn='false'
:show-center-play-btn='false' :show-center-play-btn='false'
:http-cache="true"
@click="jieshu" @click="jieshu"
:src="filePath"></video> :src="filePath"></video>
<view class="videoConten">{{contentVideo}}</view> <view class="videoConten">{{contentVideo}}</view>

View File

@ -21,7 +21,7 @@
:muted="list.isplay" :muted="list.isplay"
:controls="false" :controls="false"
:http-cache="true" :http-cache="true"
:autoplay="true" :autoplay="false"
:page-gesture="false" :page-gesture="false"
:show-fullscreen-btn="false" :show-fullscreen-btn="false"
:show-loading="false" :show-loading="false"
@ -579,11 +579,12 @@
if(this.dataList[this.k].state == 'continue'){ if(this.dataList[this.k].state == 'continue'){
this.isClick = true; this.isClick = true;
this.dataList[this.k].playIng = true this.dataList[this.k].playIng = true
uni.createVideoContext(this.dataList[this.k]._id+''+this.k,this).play();// uni.createVideoContext(this.dataList[this.k].id+''+this.k,this).play();//
audo.play() audo.play()
} }
if(this.dataList[this.k].state == 'pause'){ if(this.dataList[this.k].state == 'pause'){
uni.createVideoContext(this.dataList[this.k]._id+''+this.k,this).pause();// uni.createVideoContext(this.dataList[this.k].id+''+this.k,this).pause();//
audo.src = this.dataList[this.k].src;
audo.pause() audo.pause()
} }
}, },