From 3a77a12a216230b5c33d82ff28ad831fb591be6f Mon Sep 17 00:00:00 2001 From: "Carlos (Almeira)" Date: Sun, 29 Mar 2026 22:41:35 -0500 Subject: [PATCH] feat: implement live Radio signal and complete live signals integration --- src/app/radio/page.tsx | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/src/app/radio/page.tsx b/src/app/radio/page.tsx index 36fb900..54deb0a 100644 --- a/src/app/radio/page.tsx +++ b/src/app/radio/page.tsx @@ -1,12 +1,15 @@ import { APPWRITE_ALMEIRA_CONFIG } from '@/lib/appwrite'; import { createAdminClient } from '@/lib/appwrite.server'; import ProgrammingSchedule from '@/components/ProgrammingSchedule'; -import { RadioTower, PlayCircle, Headphones } from 'lucide-react'; +import { RadioTower, Headphones } from 'lucide-react'; +import { getEntityConfig } from '@/app/actions/entity'; +import { LivePlayer } from '@/components/media/LivePlayer'; export const revalidate = 60; // Revalida la Radio cada minuto export default async function RadioPage() { let matrixData = {}; + let entity = null; try { const client = await createAdminClient(); @@ -16,6 +19,7 @@ export default async function RadioPage() { 'matrix_radio' ); matrixData = JSON.parse(doc.matrix_data); + entity = await getEntityConfig(); } catch(e) { console.error("No se pudo cargar parrilla de radio", e); } @@ -40,21 +44,7 @@ export default async function RadioPage() { {/* Audio Player Container */}
-
-
- - {/* Placeholder gráfico tipo ecualizador */} -
- {Array.from({length: 40}).map((_, i) => ( -
- ))} -
- -
- -

Inserta aquí el iframe/embed de tu servidor ShoutCast/Icecast.

-
-
+
{/* Parrilla */}