aboutsummaryrefslogtreecommitdiff
path: root/source/client/remote_user.ts
diff options
context:
space:
mode:
authorMetaMuffin <metamuffin@yandex.com>2021-08-06 19:25:57 +0200
committerMetaMuffin <metamuffin@yandex.com>2021-08-06 19:25:57 +0200
commitb31837bd5253c772de38dc0d0fadfdba5a1903bf (patch)
tree6b8ef79bfdbb4d0f525ad95f7ad52b4fd9f5ee80 /source/client/remote_user.ts
parentc5f4438589be44208ce4946c3c090350840113ba (diff)
downloadkeks-meet-b31837bd5253c772de38dc0d0fadfdba5a1903bf.tar
keks-meet-b31837bd5253c772de38dc0d0fadfdba5a1903bf.tar.bz2
keks-meet-b31837bd5253c772de38dc0d0fadfdba5a1903bf.tar.zst
Added mute and mic gain
Diffstat (limited to 'source/client/remote_user.ts')
-rw-r--r--source/client/remote_user.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/client/remote_user.ts b/source/client/remote_user.ts
index 8318e0b..3cb4867 100644
--- a/source/client/remote_user.ts
+++ b/source/client/remote_user.ts
@@ -35,12 +35,12 @@ export class RemoteUser extends User {
const offer_description = await this.peer.createOffer()
await this.peer.setLocalDescription(offer_description)
const offer = { type: offer_description.type, sdp: offer_description.sdp }
- log("webrtc", "sent offer", offer)
+ log("webrtc", "sent offer", { a: offer })
this.room.websocket_send({ receiver: this.name, offer })
}
async on_offer(offer: RTCSessionDescriptionInit) {
this.negotiation_busy = true
- log("webrtc", "got offer", offer)
+ log("webrtc", "got offer", { a: offer })
const offer_description = new RTCSessionDescription(offer)
await this.peer.setRemoteDescription(offer_description)
this.answer()
@@ -49,12 +49,12 @@ export class RemoteUser extends User {
const answer_description = await this.peer.createAnswer()
await this.peer.setLocalDescription(answer_description)
const answer = { type: answer_description.type, sdp: answer_description.sdp }
- log("webrtc", "sent answer", answer)
+ log("webrtc", "sent answer", { a: answer })
this.room.websocket_send({ receiver: this.name, answer })
this.negotiation_busy = false
}
async on_answer(answer: RTCSessionDescriptionInit) {
- log("webrtc", "got answer", answer)
+ log("webrtc", "got answer", { a: answer })
const answer_description = new RTCSessionDescription(answer)
await this.peer.setRemoteDescription(answer_description)
this.negotiation_busy = false