aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/user/remote.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client-web/source/user/remote.ts')
-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")
+// }