diff --git a/components/apps/VideoPlayer/useVideoPlayer.ts b/components/apps/VideoPlayer/useVideoPlayer.ts index c54bb039..d828435f 100644 --- a/components/apps/VideoPlayer/useVideoPlayer.ts +++ b/components/apps/VideoPlayer/useVideoPlayer.ts @@ -112,8 +112,18 @@ const useVideoPlayer = ({ videoPlayer?.controlBar.pictureInPictureToggle.show(); videoPlayer?.controlBar.fullscreenToggle.show(); } + + linkElement( + id, + "peekElement", + enable + ? canvasElement + : isYT + ? (containerRef.current as HTMLDivElement) + : videoElement + ); }, - [containerRef] + [containerRef, id, isYT, linkElement] ); const loadPlayer = useCallback(() => { if (playerInitialized.current) return;