From a4600b04377996adeef31c92649818851940c585 Mon Sep 17 00:00:00 2001 From: shinya Date: Sun, 6 Jul 2025 01:42:00 +0800 Subject: [PATCH] fix: red heart and controls gesture --- src/app/play/page.tsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index 6397e3b..784252f 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -926,12 +926,7 @@ function PlayPageClient() { // 用户点击悬浮按钮 -> 请求全屏并锁定横屏 const handleForceLandscape = async () => { try { - const el: any = document.documentElement; - if (el.requestFullscreen) { - await el.requestFullscreen(); - } else if (el.webkitRequestFullscreen) { - el.webkitRequestFullscreen(); - } + playerRef.current?.enterFullscreen(); if (screen.orientation && (screen.orientation as any).lock) { await (screen.orientation as any).lock('landscape'); @@ -1181,7 +1176,7 @@ function PlayPageClient() { } window.history.back(); }} - className='absolute left-0 sm:left-6 text-white hover:text-gray-300 transition-colors p-2' + className='absolute vds-button left-0 sm:left-6 text-white hover:text-gray-300 transition-colors p-2' > { xmlns='http://www.w3.org/2000/svg' >