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