<template>
<video v-if="showVideo" id="myVideo" :autoplay="true" controls @fullscreenchange="fullScreenChange" :show-fullscreen-btn="false"
:src="videoUrl"></video>
</template>
<script setup>
const showVideo = ref(false)
const videoContext = ref(null)
const videoUrl = ref("")
const jumpToDetail = (item) => {
showVideo.value = true
videoUrl.value = item.content
videoContext.value = uni.createVideoContext('myVideo')
videoContext.value.requestFullScreen({
direction:0
})
}
const fullScreenChange = (e)=>{
if(!e.detail.fullScreen){
showVideo.value = false
}
}
</script>
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
自定义tabbar或者讲tabbar隐藏,在华为手机中出现,小米手机能点开,但是会闪烁。
不定义tabbar,视频能点开,能正常播放