diff --git a/src/components/player/atoms/Chromecast.tsx b/src/components/player/atoms/Chromecast.tsx index bb430db7..3507152a 100644 --- a/src/components/player/atoms/Chromecast.tsx +++ b/src/components/player/atoms/Chromecast.tsx @@ -28,7 +28,12 @@ export function Chromecast({ className }: ChromecastProps) { useEffect(() => { const w = window as unknown as { cast?: typeof cast }; const castFramework = w.cast?.framework; - if (!castFramework) return; + + // If cast framework is not available (e.g., on Safari), hide the button + if (!castFramework) { + setCastHidden(true); + return; + } const context = castFramework.CastContext.getInstance(); const updateVisibility = () => {