mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-23 15:12:35 +00:00
publish audio in remote rooms
Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
1 parent
7b88420f6a
commit
a10489d7df
1 file changed
+4
@@ -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<void> {
|
||||
|
||||
Reference in new issue
Block a user