diff --git a/public/full.js b/public/full.js index b583d98..840b980 100644 --- a/public/full.js +++ b/public/full.js @@ -831,6 +831,10 @@ window.unmuteVideoMember = () => { roomObj.videoUnmute({ memberId: id }) } +window.removeMember = (id) => { + roomObj.removeMember({ memberid: id}) +} + window.muteVideoSelf = () => { roomObj.videoMute() } @@ -1409,6 +1413,14 @@ function updateMembersUI() { onclick: () => console.log('### Nothing Executed ###'), parent: actionsDiv, }) + createChildElement({ + tag: 'a', + className: 'btn btn-warning', + textContent: 'remove member', + href: '#', + onclick: () => window.removeMember(member.id), + parent: actionsDiv, + }) memberDiv.appendChild(actionsDiv)