Update peek element for canvas mode
Some checks are pending
Tests / tests (push) Waiting to run

This commit is contained in:
Dustin Brett 2025-02-16 12:45:51 -08:00
parent f51ea0def1
commit 4c82b829c2

View File

@ -112,8 +112,18 @@ const useVideoPlayer = ({
videoPlayer?.controlBar.pictureInPictureToggle.show(); videoPlayer?.controlBar.pictureInPictureToggle.show();
videoPlayer?.controlBar.fullscreenToggle.show(); videoPlayer?.controlBar.fullscreenToggle.show();
} }
linkElement(
id,
"peekElement",
enable
? canvasElement
: isYT
? (containerRef.current as HTMLDivElement)
: videoElement
);
}, },
[containerRef] [containerRef, id, isYT, linkElement]
); );
const loadPlayer = useCallback(() => { const loadPlayer = useCallback(() => {
if (playerInitialized.current) return; if (playerInitialized.current) return;