2026-08-07 10:44:03 +07:00
|
|
|
/**
|
|
|
|
|
* Media page — Server Component. Seeds the music player with the shared media
|
|
|
|
|
* state fetched on the server (same state every user sees), then live-updates
|
|
|
|
|
* over WS.
|
|
|
|
|
*/
|
|
|
|
|
import { getMediaStatus } from "@/lib/api/server";
|
|
|
|
|
import MediaView from "./view";
|
2026-07-26 15:34:08 +07:00
|
|
|
|
2026-08-07 10:44:03 +07:00
|
|
|
export default async function MediaPage() {
|
|
|
|
|
const status = await getMediaStatus().catch(() => undefined);
|
2026-07-26 15:34:08 +07:00
|
|
|
|
2026-08-07 10:44:03 +07:00
|
|
|
return <MediaView initialStatus={status} />;
|
2026-07-26 15:34:08 +07:00
|
|
|
}
|