From 9633f6134cafa4758410acea6bc2ba6d48892e82 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Sat, 27 Sep 2025 14:06:46 -0500 Subject: [PATCH] fix bug where self streams don't show on chromium --- src/webpage/voice.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/webpage/voice.ts b/src/webpage/voice.ts index f7e4a56..43458b1 100644 --- a/src/webpage/voice.ts +++ b/src/webpage/voice.ts @@ -971,6 +971,7 @@ a=rtcp-mux\r`; } } onconnect = () => {}; + streams = new Set(); async startWebRTC() { this.status = "makingOffer"; const pc = new RTCPeerConnection(); @@ -986,7 +987,10 @@ a=rtcp-mux\r`; if (e.track.kind === "video") { //TODO I don't know why but without this firefox bugs out on streams if (media.id.match("{")) return; - console.log(media, this.vidusers); + if (this.owner.currentVoice?.voiceMap.get(this.userid) === this) { + return; + } + this.streams.add(e.track); const video = document.createElement("video"); forceVideo(video); this.onVideo(video, userId);