Methods
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 DigitalSambaEmbedded class. 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 userJoined event is a crucial part. If you try to call methods (apart from load and event subscription) 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.
Sample quick-start code:
Last updated