From 23655aec49f4920a8d5fa77899a0199dc651c907 Mon Sep 17 00:00:00 2001 From: MetaMuffin Date: Fri, 6 Aug 2021 14:58:24 +0200 Subject: dont preview local audio --- source/client/local_user.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/client/local_user.ts') diff --git a/source/client/local_user.ts b/source/client/local_user.ts index cda9b53..729dcb7 100644 --- a/source/client/local_user.ts +++ b/source/client/local_user.ts @@ -93,7 +93,6 @@ export class LocalUser extends User { this.audio_track = t this.room.remote_users.forEach(u => u.peer.addTrack(t)) - this.stream.addTrack(t) this.update_view_w() } async disable_video() { @@ -114,7 +113,6 @@ export class LocalUser extends User { if (s.track == this.audio_track) u.peer.removeTrack(s) }) }) - this.stream.removeTrack(this.audio_track) this.update_view_w() this.audio_track = undefined } -- cgit v1.2.3-70-g09d2