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' >