I am developing a Twitter Spaces clone using LiveKit and Next.js. I have found the Clubhouse demo provided by LiveKit, which includes most of the functionality I need. However, I am stuck on implementing admin functionalities, such as muting everyone in the room or kicking someone out from the client side.
My expectation was that there should be a way to emit events from the admin side and capture them on the participant side to change their state accordingly. I’m not sure where I’m going wrong.
I have tried manipulating the tracks and participants directly and emitting events, but nothing seems to be working.
Can any expert provide a general idea or guidance on how I can accomplish this?
Thank you in advance!