From 2f5d47d21dfc308c1b930cf45e13b34445d3a8e5 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 22 Mar 2025 13:02:32 +0100 Subject: Convert sass to css --- client-web/source/user/remote.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'client-web/source/user/remote.ts') diff --git a/client-web/source/user/remote.ts b/client-web/source/user/remote.ts index 4cb31a2..aa5b1b4 100644 --- a/client-web/source/user/remote.ts +++ b/client-web/source/user/remote.ts @@ -157,6 +157,7 @@ export class RemoteUser extends User { async offer() { this.negotiation_busy = true const offer_description = await this.pc.createOffer() + // if (offer_description.sdp) offer_description.sdp = filter_sdp(offer_description.sdp) await this.pc.setLocalDescription(offer_description) log("webrtc", `sent offer: ${this.display_name}`, { offer: offer_description.sdp }) this.send_to({ offer: offer_description.sdp }) @@ -170,6 +171,7 @@ export class RemoteUser extends User { } async answer() { const answer_description = await this.pc.createAnswer() + // if (answer_description.sdp) answer_description.sdp = filter_sdp(answer_description.sdp) await this.pc.setLocalDescription(answer_description) log("webrtc", `sent answer: ${this.display_name}`, { answer: answer_description.sdp }) this.send_to({ answer: answer_description.sdp }) @@ -219,4 +221,11 @@ export class RemoteUser extends User { console.warn(e); } } -} \ No newline at end of file +} + +// function filter_sdp(s: string): string { +// return s.split("\n") +// .filter(l => l.search("VP8") == -1) +// .filter(l => l.search("VP9") == -1) +// .join("\n") +// } -- cgit v1.2.3-70-g09d2