Methods
Last updated
Last updated
Methods are essential for controlling the call. You may want to enable or disable cameras, microphones, start screen sharing, control recordings, etc...
Before you start using methods, first you need to initialize the SDK and load the room through the . After that you can use the sambaFrame (or whatever variable name you have chosen) to call methods and control the rooms experience.
Subscribing to the event is a crucial part. If you try to call methods (apart from and ) while user hasn't joined the room yet, then calling the methods won't do anything. For example -> you cannot possibly enable user's camera if he hasn't joined the room yet.