修改
This commit is contained in:
parent
11958b9e26
commit
98783b9607
@ -42,8 +42,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-popup v-model="videoshow" mode="center" closeable @close='videoshowfalse'>
|
<u-popup v-model="videoshow" mode="center" closeable @close='videoshowfalse'>
|
||||||
<video v-if="videoshow" :src="baseurl+videoitem.itemDirectoryUrl" @timeupdate='videotimeupdate'
|
<video id="video" v-if="videoshow" :src="baseurl+videoitem.itemDirectoryUrl" @timeupdate='videotimeupdate'
|
||||||
:initial-time='videoitem.watchTime' @error='videoerror' :custom-cache="false"></video>
|
:initial-time='videoitem.watchTime' @error='videoerror' :custom-cache="false"
|
||||||
|
@play='videoplays'></video>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
<u-toast ref="uToast" />
|
<u-toast ref="uToast" />
|
||||||
</view>
|
</view>
|
||||||
@ -119,6 +120,12 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
//视频播放
|
//视频播放
|
||||||
|
videoplays() {
|
||||||
|
if (this.videoitem.watchTime) {
|
||||||
|
this.videoContext = uni.createVideoContext('video')
|
||||||
|
this.videoContext.seek(this.videoitem.watchTime)
|
||||||
|
}
|
||||||
|
},
|
||||||
videoplay(item) {
|
videoplay(item) {
|
||||||
this.videoerroshow = true
|
this.videoerroshow = true
|
||||||
if (item.itemDirectoryUrl) {
|
if (item.itemDirectoryUrl) {
|
||||||
|
|||||||
@ -42,8 +42,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-popup v-model="videoshow" mode="center" closeable @close='videoshowfalse'>
|
<u-popup v-model="videoshow" mode="center" closeable @close='videoshowfalse'>
|
||||||
<video v-if="videoshow" :src="baseurl+videoitem.itemDirectoryUrl" @timeupdate='videotimeupdate'
|
<video id="video" v-if="videoshow" :src="baseurl+videoitem.itemDirectoryUrl" @timeupdate='videotimeupdate'
|
||||||
:initial-time='videoitem.watchTime' @error='videoerror' :custom-cache="false"></video>
|
:initial-time='videoitem.watchTime' @error='videoerror' :custom-cache="false"
|
||||||
|
@play='videoplays'></video>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
<u-toast ref="uToast" />
|
<u-toast ref="uToast" />
|
||||||
</view>
|
</view>
|
||||||
@ -108,6 +109,13 @@
|
|||||||
this.videoshow = false
|
this.videoshow = false
|
||||||
},
|
},
|
||||||
//视频播放
|
//视频播放
|
||||||
|
videoplays() {
|
||||||
|
if (this.videoitem.watchTime) {
|
||||||
|
this.videoContext = uni.createVideoContext('video')
|
||||||
|
this.videoContext.seek(this.videoitem.watchTime)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//视频播放
|
||||||
videoplay(item) {
|
videoplay(item) {
|
||||||
this.videoerroshow = true
|
this.videoerroshow = true
|
||||||
if (item.itemDirectoryUrl) {
|
if (item.itemDirectoryUrl) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user