diff --git a/public/call.html b/public/call.html
index f3d5ea7..12af3c9 100644
--- a/public/call.html
+++ b/public/call.html
@@ -89,9 +89,22 @@
+
+
+
@@ -257,6 +270,7 @@
rxBytes: 0,
isMicMuted: true,
+ isSoundMuted: false,
codecMode: "1200",
sampleRate: 8000,
@@ -394,6 +408,11 @@
// listen to audio from call
this.ws.onmessage = async (event) => {
+ // do nothing if muted
+ if(this.isSoundMuted){
+ return;
+ }
+
// get encoded codec2 bytes from websocket message
const encoded = await event.data.arrayBuffer();