From 8e985e2268d9443c70ae79e29d8bd8eb3e5c8a25 Mon Sep 17 00:00:00 2001 From: kuekhaoyang Date: Fri, 26 Dec 2025 11:51:56 +0800 Subject: [PATCH] feat: Add Google Cast functionality and controls to the desktop player. --- app/layout.tsx | 3 + components/player/desktop/DesktopControls.tsx | 2 + .../player/desktop/DesktopControlsWrapper.tsx | 5 +- .../player/desktop/DesktopRightControls.tsx | 16 +++ .../player/hooks/desktop/useCastControls.ts | 120 ++++++++++++++++++ .../player/hooks/useDesktopPlayerLogic.ts | 10 +- .../player/hooks/useDesktopPlayerState.ts | 4 + components/ui/icons/media-icons.tsx | 9 ++ 8 files changed, 167 insertions(+), 2 deletions(-) create mode 100644 components/player/hooks/desktop/useCastControls.ts diff --git a/app/layout.tsx b/app/layout.tsx index 4fdc56c..b2728f0 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -53,6 +53,9 @@ export default function RootLayout({ className="sr-only" /> + {/* Google Cast SDK */} +