Add displaying the radio station name parameter

This commit is contained in:
2025-12-08 22:15:09 +01:00
parent 946ee63bc6
commit fb6c9978f3
3 changed files with 4 additions and 2 deletions

View File

@@ -6,8 +6,9 @@
const statusEl = document.getElementById('status');
const metaEl = document.getElementById('meta');
const streamUrlEl = document.getElementById('streamUrl');
const nomStation = document.getElementById('nomStation');
//streamUrlEl.textContent = ICECAST_URL;
nomStation.innerHTML = nomStationRadio;
audio.src = ICECAST_URL;
audio.crossOrigin = "anonymous"; // utile si vous souhaitez analyser l'audio plus tard

View File

@@ -1 +1,2 @@
ICECAST_URL = ""; // Url complète comprenant port et point de montage
nomStationRadio = ""; Nom de votre station affiché au-dessus du player

View File

@@ -15,7 +15,7 @@
</head>
<body>
<table width="100%">
<tr><td width="25%">
<tr><td width="25%"><span id="nomStation" style="text-align: center; font-weight: bold;">MA RADIO SUR LE WEB</span>
<div class="player" id="player">
<div class="header">
<div class="controls">