refactor: simplifier UI server audio users — entrée vide = écoute seule

Supprime la checkbox "Publier audio" et la colonne Mode.
Le comportement est déduit de l'entrée : aucune entrée = écoute seule.
Option "Aucune entrée" ajoutée au select canal d'entrée (comme pour sortie).
publish dérivé de inputChannel !== null dans AudioBridgeManager.
This commit is contained in:
2026-07-03 17:21:48 +02:00
parent b0f7d294d8
commit 0cbad12e49
4 changed files with 24 additions and 58 deletions
+4 -3
View File
@@ -66,7 +66,9 @@ class AudioBridgeManager extends EventEmitter {
}
);
const publish = user.publish !== false;
const rawInputChannel = user.input_channel ?? user.inputChannel ?? null;
const inputChannel = rawInputChannel !== null && rawInputChannel !== undefined ? rawInputChannel : null;
const publish = inputChannel !== null;
token.addGrant({
room: groupId,
@@ -79,12 +81,11 @@ class AudioBridgeManager extends EventEmitter {
const jwt = await token.toJwt();
const outputChannel = user.output_channel ?? user.outputChannel;
const rawInputChannel = user.input_channel ?? user.inputChannel;
serverAudioUsers.push({
name: user.name,
groupId,
inputChannel: rawInputChannel !== null && rawInputChannel !== undefined ? rawInputChannel : null,
inputChannel,
outputChannel: outputChannel !== null && outputChannel !== undefined ? outputChannel : null,
publish,
token: jwt