This message was deleted.
# helpdesk
s
This message was deleted.
p
h
Omg ty dude, didn't see it o_O
Do you know if, with "hidden", we should disable the microphone and camera (setMicrophoneEnabled / setCameraEnabled) before room connection ?
I can see a "canPublish" grant, I guess if the value is "false", the auto publication is disable ?
d
that's right, the user would not be able to publish when
canPublish
is set to false
there's also no way for others to see the hidden participant's tracks (as they are not visible to others)
h
So I don't have to do something like this (before connection) if canPublish is set to false :
_room.localParticipant.setCameraEnabled_(_false_);
_room.localParticipant.setMicrophoneEnabled_(_false_);
(or maybe just "hidden: true" did this too ?)
a
Have you considered using webhooks for that purpose? https://docs.livekit.io/realtime/server/webhooks/
h
Yes I had but instanciates a Room seemed simpler to me, as we have almost nothing more to do and to add (no extra server, no another endpoints). You just have to get a token, instanciate a Room, and listen 2 events and it works really great (just a few lines of code). Maybe I wrong ?