From a10489d7df451f82bc3c282edc88786f7962fe44 Mon Sep 17 00:00:00 2001 From: Timo K Date: Wed, 27 Aug 2025 17:07:22 +0200 Subject: [PATCH] publish audio in remote rooms Signed-off-by: Timo K --- src/state/CallViewModel.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/state/CallViewModel.ts b/src/state/CallViewModel.ts index bade6ef9..095b7d03 100644 --- a/src/state/CallViewModel.ts +++ b/src/state/CallViewModel.ts @@ -470,6 +470,10 @@ class Connection { this.stopped = false; const { url, jwt } = await this.sfuConfig; if (!this.stopped) await this.livekitRoom.connect(url, jwt); + const tracks = await this.livekitRoom.localParticipant.createTracks({ + audio: { deviceId: "default" }, + }); + await this.livekitRoom.localParticipant.publishTrack(tracks[0]); } public async startPublishing(): Promise {