diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index f4d5644..6bf624a 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -871,6 +871,8 @@ function PlayPageClient() { lang: 'zh-cn', hotkey: false, fastForward: true, + autoOrientation: true, + lock: true, moreVideoAttr: { crossOrigin: 'anonymous', }, @@ -1030,18 +1032,6 @@ function PlayPageClient() { } }); - artPlayerRef.current.on('fullscreen', async (state: boolean) => { - if (state) { - if (screen.orientation && (screen.orientation as any).lock) { - await (screen.orientation as any).lock('landscape'); - } - } else { - if (screen.orientation && (screen.orientation as any).unlock) { - (screen.orientation as any).unlock(); - } - } - }); - artPlayerRef.current.on('video:timeupdate', () => { const now = Date.now(); if (now - lastSaveTimeRef.current > 5000) {