mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 12:20:20 +01:00
This commit is contained in:
parent
f51ea0def1
commit
4c82b829c2
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user