This message was deleted.
# helpdesk
s
This message was deleted.
a
hi, to be honest I don’t understand your question. Are you trying to make a room where participants must be granted access by admins before they are able to share their camera and screen?
s
@acoustic-engineer-41666 let i explain you what exactly i want to do I create token room and assign first creater to room admin Then Now any other participants can join only room without admin permission that user can't speak and can't turn on their camara and can't share their screen during meeting. And for normal user put one button to raise hand to ask permission for user to access camara, audio and video and screen share This possible if only admin can access that user.
I hope now you understand.
m
Hi Vivek, if I’m understanding correctly, it sounds like what you want is: A room has a single moderator or admin. Every other participant that joins the room is not allowed to publish streams. They can raise their hand and the mod/admin can grant them privileges to publish their streams. Once granted, that participant may now begin publishing their camera/mic/screenshare tracks. Correct?
s
Yes
Exactly that
1
m
Back to you @acoustic-engineer-41666 😊
b
I dont know my understanding exactly. You mean you just want to control audio/video track of participant in room through admin user. I think you can use api of Video/Audio track mute/unmute you can hide a mic/camera button in web client, and your admin user send a mute api or unmute api. server-sdk-go
Copy code
// mute/unmute participant's tracks
    roomClient.MutePublishedTrack(context.Background(), &livekit.MuteRoomTrackRequest{
  Room:     roomName,
  Identity: identity,
  TrackSid: "track_sid",
  Muted:    true,
 })
d
Hi Vivek, you'd set
canPublish
to false for viewers, that will disallow them from publishing to the room. You can see the permissions that are available in the token grants here. In order to allow them to publish later on, you'd want to call the server API UpdateParticipant and give them a new permissions field with
canPublish
set to true.
s
So we need to build token for both admin and normal user participate right and all thing mange in token? Is i am right?
@dry-elephant-14928 so that flow manage by backend or fornt-end like my livekit token logic is built on backend node js And the front-end i use react js
a
Yeah, your backend would have to manage the admin permissions to allow admins to update the user tokens with the
canPublish
field set to
true