Update main.js

This commit is contained in:
simonpipe 2025-12-18 19:05:05 +01:00
parent 81cfac693a
commit 5db8022fbc

View file

@ -91,11 +91,15 @@ document.addEventListener('DOMContentLoaded', function () {
src: [url], src: [url],
html5: true, html5: true,
volume: 0.5, volume: 0.5,
// In der playStream Funktion innerhalb von onplay:
onplay: () => { onplay: () => {
stopButton.classList.remove('hidden'); stopButton.classList.remove('hidden');
const stationName = item.querySelector('h3').textContent; const stationName = item.querySelector('h3').textContent;
if (window.UI) window.UI.updateDocumentTitle(stationName); if (window.UI) window.UI.updateDocumentTitle(stationName);
currentStationName.textContent = 'Es läuft: ' + stationName;
// Wir setzen das Icon für den Sender
currentStationName.innerHTML = `<i class="fa-solid fa-tower-broadcast"></i> ${stationName}`;
if (window.MetaHandler) window.MetaHandler.start(url); if (window.MetaHandler) window.MetaHandler.start(url);
}, },
onstop: () => { onstop: () => {