mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-02 12:08:37 +01:00
feat(casting): mount the autoplay watcher and countdown overlay
This commit is contained in:
12
components/casting/CastAutoplayWatcher.tsx
Normal file
12
components/casting/CastAutoplayWatcher.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Always-mounted host for the Chromecast autoplay watcher. Renders nothing —
|
||||
* it exists only to run `useCastAutoplay` for the app's lifetime, so autoplay
|
||||
* fires regardless of which screen is open.
|
||||
*/
|
||||
|
||||
import { useCastAutoplay } from "@/hooks/useCastAutoplay";
|
||||
|
||||
export function CastAutoplayWatcher() {
|
||||
useCastAutoplay();
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user