renamed audio sink fields

This commit is contained in:
Milarin 2024-12-11 11:48:25 +01:00
parent ce54527b81
commit 9bbfc4b9f8

View File

@ -158,14 +158,14 @@ async function onShowSelectAudioSinkDialogClicked() {
input.setAttribute("type", "radio"); input.setAttribute("type", "radio");
input.setAttribute("name", "audiosink"); input.setAttribute("name", "audiosink");
input.setAttribute("id", `audiosink_${index}`); input.setAttribute("id", `audiosink_${index}`);
input.setAttribute("value", audioSink.description); input.setAttribute("value", audioSink.device_name);
input.addEventListener("change", onCloseSelectAudioSinkDialogClicked); input.addEventListener("change", onCloseSelectAudioSinkDialogClicked);
if (audioSink.name == currentAudioSink) input.setAttribute("checked", "checked"); if (audioSink.name == currentAudioSink) input.setAttribute("checked", "checked");
audioSinkSelectForm.appendChild(input); audioSinkSelectForm.appendChild(input);
const label = document.createElement("label"); const label = document.createElement("label");
label.setAttribute("for", `audiosink_${index}`); label.setAttribute("for", `audiosink_${index}`);
label.textContent = audioSink.description; label.textContent = audioSink.display_name;
audioSinkSelectForm.appendChild(label); audioSinkSelectForm.appendChild(label);
} }