Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permitir configuración de URLs de los streams #1

Open
Zarrapo opened this issue Feb 5, 2025 · 0 comments
Open

Permitir configuración de URLs de los streams #1

Zarrapo opened this issue Feb 5, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Zarrapo
Copy link
Owner

Zarrapo commented Feb 5, 2025

📌 Permitir configuración de URLs de los streams

Tipo: Mejora 🚀
Prioridad: Media
Estado: Abierto

✨ Descripción

Actualmente, las URLs de los streams están hardcodeadas en renderer.js, lo que dificulta su modificación si cambian en el futuro.

Para hacer la aplicación más flexible, sería conveniente almacenar las URLs de las emisoras en un archivo de configuración que el usuario pueda editar fácilmente.

🛠️ Propuesta de solución

  • Crear un archivo config.json en el directorio de la aplicación con la estructura:
{
  "stations": {
    "station1": {
      "url": "https://dispatcher.rndfnk.com/crtve/rner3/main/mp3/high",
      "label": "Radio 3"
    },
    "station2": {
      "url": "https://dispatcher.rndfnk.com/crtve/rnerc/main/mp3/high",
      "label": "Radio Clásica"
    },
    "station3": {
      "url": "https://dispatcher.rndfnk.com/crtve/rne5/main/mp3/high",
      "label": "Radio 5"
    },
    "station4": {
      "url": "https://dispatcher.rndfnk.com/crtve/rne1/main/mp3/high",
      "label": "Radio Nacional"
    }
  }
}
  • Cargar este archivo al iniciar la aplicación y usar sus valores en lugar de las URLs hardcodeadas.
  • Si el archivo no existe, generar uno con valores predeterminados.
@Zarrapo Zarrapo added the enhancement New feature or request label Feb 5, 2025
@Zarrapo Zarrapo self-assigned this Feb 5, 2025
@Zarrapo Zarrapo added this to the Release v2 milestone Feb 5, 2025
@Zarrapo Zarrapo pinned this issue Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant