DigitalSambaEmbedded class
There are two approaches to initializing:
//instanceProperties is an optional param const sambaFrame = new DigitalSambaEmbedded(initOptions, instanceProperties);// notice `createControl` vs constructor call const sambaFrame = DigitalSambaEmbedded.createControl(initOptions); // ... // when necessary, load the room in the frame // instanceProperties is optional sambaFrame.load(instanceProperties);
InitOptions - look also at the code examples
{ "GEOGEBRA_TOKEN": "..............." }{ //Configures if user's video device will be enabled on entering the room videoEnabled: boolean, //Configures if user's audio device will be enabled on entering the room audioEnabled: boolean, //Configures initial video and audio devices to use on entering the room mediaDevices: { videoinput: 'label of camera', audioinput: 'label of microphone', audiooutput: 'label of speaker device' }, //Language for the user. Use language code - e.g. en, de-DE, es-ES appLanguage: string, //Name of the user on entering the room username: string, //Custom initials (max 2 letters) for the user tile initials: string, //If 'auto' or 'tiled' layout mode will be used layoutMode: string, //If the toolbar will be visible or not showToolbar: boolean, //If the topbar will be visible or not showTopbar: boolean, //If the captions panel will be visible or not showCaptions: boolean, //The virtual background virtualBackground: VirtualBackgroundOptions, /* Allows you to customize the virtual backgrounds available to users in your application. You can provide your own collection of backgrounds and optionally replace the default backgrounds */ virtualBackgrounds: [ Read below how to configure it ], // Replace default backgrounds with custom ones (optional) replaceVirtualBackgrounds: false, //If the frame will be muted on join for the local user muteFrame: boolean, //If a confirmation modal will be shown when you remove (kick) another user requireRemoveUserConfirmation: boolean, /* An optional base domain to use when generating invitation links This is useful if you are a integrator where the invitation links are not on your main domain where the meeting UI is loaded. */ baseDomain: string //For example 'your.domain.com' }
Virtual Backgrounds Configuration
Custom Backgrounds Collection
Background Item Properties
Property
Type
Description
Required
Replacing Default Backgrounds
InstanceProperties - look also at the code example
Code examples of the possible initOptions combinations:
Sample usage of the optional instanceProperties to set a red border and also report errors:
Last updated