Update main.js
This commit is contained in:
parent
81cfac693a
commit
5db8022fbc
1 changed files with 5 additions and 1 deletions
|
|
@ -91,11 +91,15 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
src: [url],
|
||||
html5: true,
|
||||
volume: 0.5,
|
||||
// In der playStream Funktion innerhalb von onplay:
|
||||
onplay: () => {
|
||||
stopButton.classList.remove('hidden');
|
||||
const stationName = item.querySelector('h3').textContent;
|
||||
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);
|
||||
},
|
||||
onstop: () => {
|
||||
Loading…
Reference in a new issue