From 928fcb261bef46a18152e317e07348e4552ccbe6 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Sat, 2 May 2026 13:22:09 +0800 Subject: [PATCH] =?UTF-8?q?feat(vap=E6=92=AD=E6=94=BE=E7=BB=84=E4=BB=B6):?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E8=8B=B9=E6=9E=9C=E7=AB=AF=E8=B5=B0?= =?UTF-8?q?=E5=8E=9F=E7=94=9Fvideo=E6=92=AD=E6=94=BE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/VapMp4Player.vue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/VapMp4Player.vue b/src/components/VapMp4Player.vue index 492af73..ce3c748 100644 --- a/src/components/VapMp4Player.vue +++ b/src/components/VapMp4Player.vue @@ -121,17 +121,17 @@ function enforceVideoPlaybackAttributes(video, shouldMute) { video.disableRemotePlayback = true } - // Keep the source video alive for canvas sampling without letting Safari - // promote it into the native fullscreen player. - video.style.display = 'block' - video.style.position = 'fixed' - video.style.left = '-9999px' - video.style.top = '0' - video.style.width = '1px' - video.style.height = '1px' - video.style.opacity = '0' + // Hide the source video completely so iOS does not surface the raw mp4 + // in the native fullscreen player instead of keeping the VAP in-canvas. + video.style.display = 'none' + video.style.position = '' + video.style.left = '' + video.style.top = '' + video.style.width = '' + video.style.height = '' + video.style.opacity = '' video.style.pointerEvents = 'none' - video.style.zIndex = '-1' + video.style.zIndex = '' if (shouldMute) { video.muted = true