用户2818601
用户2818601
  • 发布:2025-09-11 17:42
  • 更新:2025-09-11 17:43
  • 阅读:21

iOS 页面只要引入 video 标签,就会白屏,且无法退出

分类:uni-app
2025-09-11 17:42 负责人:无 分享
已邀请:
用户2818601

用户2818601 (作者)

<route lang="json5" type="page">
{
layout: 'default',
style: {
navigationStyle: 'custom',
},
}
</route>

<template>
<view class="text-black">
<wd-navbar title="22222" left-arrow fixed placeholder safeAreaInsetTop></wd-navbar>
<view class="w-40 h-40 overflow-hidden">
333
<video
v-if="show"
src="https://www.w3schools.com/html/mov_bbb.mp4"
playsinline
width="40px"
height="40px"
preload="auto"

222
</video>
</view>
</view>
</template>

<script lang="ts" setup>
const show = ref(false)

setTimeout(() => {
show.value = true
}, 3000)

setTimeout(() => {
show.value = false
}, 5000)
</script>

只要 video 标签一加载,页面就会报错

要回复问题请先登录注册