Fix:2959 【商城小程序】先播放古镇活动版块视频,再播放主图视频,活动版块视频不会暂停

This commit is contained in:
linxi
2024-12-27 17:06:24 +08:00
parent 71aa5e5a3c
commit cc2664f116
2 changed files with 11 additions and 1 deletions
+6
View File
@@ -108,6 +108,12 @@ export default {
playerCtx.pause()
})
},
handlePlayer() {
this.videoPlayers.forEach(player => {
const playerCtx = uni.createVideoContext(player, this)
playerCtx.pause()
})
},
infoItemViewClick(item, index) {
if(item.contentType === 2) {
// const coverCtx = uni.createVideoContext('coverVideo', this)