aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/user
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-03-22 13:02:32 +0100
committermetamuffin <metamuffin@disroot.org>2025-03-22 13:03:31 +0100
commit2f5d47d21dfc308c1b930cf45e13b34445d3a8e5 (patch)
tree1efa38bb95a2bc55132c0f8751727647906bb5dd /client-web/source/user
parentaee091c28ad99862f8d94665a1efc65288a17d52 (diff)
downloadkeks-meet-2f5d47d21dfc308c1b930cf45e13b34445d3a8e5.tar
keks-meet-2f5d47d21dfc308c1b930cf45e13b34445d3a8e5.tar.bz2
keks-meet-2f5d47d21dfc308c1b930cf45e13b34445d3a8e5.tar.zst
Convert sass to css
Diffstat (limited to 'client-web/source/user')
-rw-r--r--client-web/source/user/remote.ts11
1 files changed, 10 insertions, 1 deletions
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")
+// }