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;
|
this.stopped = false;
|
||||||
const { url, jwt } = await this.sfuConfig;
|
const { url, jwt } = await this.sfuConfig;
|
||||||
if (!this.stopped) await this.livekitRoom.connect(url, jwt);
|
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> {
|
public async startPublishing(): Promise<void> {
|
||||||
|
|||||||
Reference in new issue
Block a user