From adefd231dfd4ea8d275c50e1109d248c9afeed75 Mon Sep 17 00:00:00 2001 From: Joao Santos Date: Fri, 28 Jun 2024 15:05:22 +0000 Subject: [PATCH] add lock/unlock --- public/full.js | 10 ++++++++++ views/index.ejs | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/public/full.js b/public/full.js index df5b694..52317b5 100644 --- a/public/full.js +++ b/public/full.js @@ -37,6 +37,8 @@ const inCallElements = [ unmuteSelfBtn, muteVideoSelfBtn, unmuteVideoSelfBtn, + lockCallBtn, + unlockCallBtn, deafSelfBtn, undeafSelfBtn, controlSliders, @@ -800,6 +802,14 @@ window.unmuteVideoSelf = () => { roomObj.videoUnmute() } +window.lockCall = () => { + roomObj.lock() +} + +window.unlockCall = () => { + roomObj.unlock() +} + window.deafSelf = () => { roomObj.deaf() } diff --git a/views/index.ejs b/views/index.ejs index 1371f5c..696ea7a 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -153,6 +153,16 @@ +
+ + +
+