diff --git a/src/components/VideoPlayer/index.tsx b/src/components/VideoPlayer/index.tsx index e1f4d28..8b7c1c3 100644 --- a/src/components/VideoPlayer/index.tsx +++ b/src/components/VideoPlayer/index.tsx @@ -24,9 +24,9 @@ export default function VideoPlayer({ if (!video || !container) return const observer = new IntersectionObserver( - async ([entry]) => { + ([entry]) => { if (!entry.isIntersecting && !video.paused) { - await videoManager.enterPiP(video) + videoManager.enterPiP(video) } }, { threshold: 0.5 } @@ -51,7 +51,8 @@ export default function VideoPlayer({