renamed audio sink fields
This commit is contained in:
parent
ce54527b81
commit
9bbfc4b9f8
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user