mirror of
https://github.com/vector-im/element-call.git
synced 2026-02-02 04:05:56 +00:00
publish audio in remote rooms
Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
@@ -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