Initial release v1.0.0
This commit is contained in:
15
frontend/components/player/MediaControlsHandler.tsx
Normal file
15
frontend/components/player/MediaControlsHandler.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
"use client";
|
||||
|
||||
import { useKeyboardShortcuts } from "@/hooks/useKeyboardShortcuts";
|
||||
import { useMediaSession } from "@/hooks/useMediaSession";
|
||||
|
||||
/**
|
||||
* Invisible component that registers keyboard shortcuts and Media Session API
|
||||
* Should be placed at the root level of the app
|
||||
*/
|
||||
export function MediaControlsHandler() {
|
||||
useKeyboardShortcuts();
|
||||
useMediaSession();
|
||||
|
||||
return null; // This component doesn't render anything
|
||||
}
|
||||
Reference in New Issue
Block a user