mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-30 15:59:16 +02:00
show rds rt
This commit is contained in:
@@ -146,6 +146,7 @@
|
|||||||
<div class="progress-bar" title="progress"><div class="progress-fill" id="prog-fill"></div></div>
|
<div class="progress-bar" title="progress"><div class="progress-fill" id="prog-fill"></div></div>
|
||||||
<div class="small" id="time-label">00:00 / 00:00 (00:00)</div>
|
<div class="small" id="time-label">00:00 / 00:00 (00:00)</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="small" id="rds-text" style="margin-top:6px; color:var(--muted); font-family:'Consolas',monospace;"></div>
|
||||||
<div class="controls" style="margin-top:10px">
|
<div class="controls" style="margin-top:10px">
|
||||||
<button id="skip-btn" class="btn">⏭ Skip</button>
|
<button id="skip-btn" class="btn">⏭ Skip</button>
|
||||||
<button id="clear-btn" class="btn">✖ Clear Queue</button>
|
<button id="clear-btn" class="btn">✖ Clear Queue</button>
|
||||||
@@ -283,6 +284,13 @@
|
|||||||
const d = msg.data || {};
|
const d = msg.data || {};
|
||||||
if(d.track) applyProgressState(d.track);
|
if(d.track) applyProgressState(d.track);
|
||||||
if(d.dirs) updateDirs(d.dirs);
|
if(d.dirs) updateDirs(d.dirs);
|
||||||
|
if(d.rds) {
|
||||||
|
const rt = (d.rds?.rt) ?? "";
|
||||||
|
document.getElementById("rds-text").textContent = rt ? `RDS: ${rt}` : "";
|
||||||
|
}
|
||||||
|
} else if (msg.event === "rds") {
|
||||||
|
const rt = (msg.data?.rt) ?? "";
|
||||||
|
document.getElementById("rds-text").textContent = rt ? `RDS: ${rt}` : "";
|
||||||
} else if(msg.event === "playlist") {
|
} else if(msg.event === "playlist") {
|
||||||
playlist = msg.data || [];
|
playlist = msg.data || [];
|
||||||
renderPlaylist();
|
renderPlaylist();
|
||||||
|
|||||||
Reference in New Issue
Block a user