How to Select and Switch Participants in a Digital Samba Video Call

7 min read
February 19, 2024

Video calls now carry a large share of business communication, and the larger the session, the more the experience depends on who can speak, who is on screen and who is simply watching. Managing that well is what separates a focused meeting from a noisy one.

Digital Samba gives you two ways to manage participants: a dashboard with a flexible roles and permissions system, and an API and SDK for managing participants programmatically from your own application.

In this article, we look at participant management in Digital Samba video calls: how to select who can do what through roles, and how to switch speakers and focus during a live session.

Table of Contents 

  1. Selecting vs switching participants: what each means
  2. Selecting participants in a Digital Samba video call
  3. Switching and managing participants during a Digital Samba video call
  4. Frequently asked questions
  5. Enhance your video conferencing experience with Digital Samba

Selecting vs switching participants: what each means

Two related functions shape how a Digital Samba session runs: selecting participants and switching between them.

Selecting participants

Selecting is about deciding, before and during the session, what each person is allowed to do. Through roles and permissions you choose who can broadcast, share a screen, moderate or simply watch. This is what keeps order in large meetings and webinars: only the right people are heard at the right time.

Switching participants

Switching is about changing who is in focus while the call is running: promoting an attendee to speaker for a Q&A, granting someone the microphone for their segment, pinning or maximising a presenter's tile in your own view, then handing the floor to the next person. During a team update, for example, a moderator can move the floor from one team leader to another without interrupting the flow.

Both matter for the same reason: a session where the audience knows who is presenting, and where moderators can react in seconds, feels professional and stays productive.

Selecting participants in a Digital Samba video call

Roles and permissions

A role in Digital Samba is a named set of permissions. Five preset roles come ready to use, and you can create as many custom roles as your use case needs:

  • Moderator – the "owner" of the meeting, with all permissions: broadcasting, screen sharing and presenting, plus management rights such as granting or removing permissions, removing participants, and starting, ending or recording sessions.
  • Speaker – has all broadcast, screen-sharing and presentation permissions, but none of the Moderator's management rights.
  • Attendee – the audience role. Attendees see and hear the speakers but are not seen or heard themselves; they can raise a hand, and a moderator approves their request to speak.
  • Teacher – a preset for virtual classrooms with the same rights as the Moderator.
  • Student – a low-permission classroom role that can view the session, broadcast and edit the whiteboard by default, but has no moderation capabilities.

In the Digital Samba dashboard, the Roles section lists every role your team has created. Adding a role to the list does not put it in a room automatically: you select the subset of roles for each room in the room's General settings, where the order you add them is the order they appear in the Participants panel. You also pick a Default role there – the role assigned to participants who join with no token (for example via a shared link to a public room) or with a token that carries no role.

Using the Digital Samba dashboard for participant management

Each role encompasses a granular set of permissions covering actions like broadcasting, session management and participant removal – the full list is in the permissions documentation. For a wider tour of room configuration, see our guide to configuring Digital Samba rooms in the dashboard.

How to create roles and assign participants using the Digital Samba API

The REST API lets you manage roles programmatically. A POST request to the /roles endpoint creates a new role: you give it a unique name, a display_name that participants see in the participants list, and a permissions object listing what the role may do:

curl --request POST \
  --header "Content-Type: application/json" \
  --url https://api.digitalsamba.com/api/v1/roles \
  --user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY \
  --data '{
     "name": "custom",
     "display_name": "Custom",
     "permissions": {
        "start_session": true,
        "remote_muting": ["speaker", "attendee"],
        "raise_hand": true
     }
  }'

Role-sensitive permissions such as remote_muting accept an array of role names, so you can allow a Speaker to mute Attendees but not Moderators; passing true instead allows the action on all roles, current and future.

Keep in mind that creating a role through the /roles endpoint only registers it in the system. To use it, you must add the role to a room when creating or editing that room – or set it in your team's default room settings so every room inherits it.

To place a specific participant into a role, issue them a room token with the role property set to the role's name or id. Participants who join without a token, or with a token that has no role, get the room's default role.

Switching and managing participants during a Digital Samba video call

Using the Digital Samba video call interface

Inside a session, moderators manage participants directly from the video call interface. The Participants panel and the in-call controls offer actions such as requesting a user to mute, approving a raised hand, controlling screen share, or pinning a user's panel to keep that person in view.

Using the Digital Samba video call interface

Using the Digital Samba API/SDK

The Digital Samba Embedded SDK provides programmatic controls for the same actions, so you can build a custom participants panel in your own application. Here is how the core actions look in code.

Granting broadcast permission:

// Allow the user to turn on both camera and microphone
sambaFrame.allowBroadcast({
  id: '9efc7798-a1a4-44bd-9d8d-532fe0feea9d',
  audio: true,
  video: true
});

// Audio only – useful for call-in style questions
sambaFrame.allowBroadcast({
  id: '9efc7798-a1a4-44bd-9d8d-532fe0feea9d',
  audio: true,
  video: false
});

This enables a participant to share media – for instance, bringing an attendee "on stage" during a webinar. You can grant audio, video or both.

Revoking broadcast permission:

sambaFrame.disallowBroadcast('9efc7798-a1a4-44bd-9d8d-532fe0feea9d');

Use this to take back permissions you granted earlier with allowBroadcast (it only takes effect if allowBroadcast was previously called for that user) – typical for webinars where speaking rights are handed out and withdrawn on the fly.

Remote muting and unmuting:

// Request muting a noisy participant (a confirmation popup appears in the session)
sambaFrame.requestMute('9efc7798-a1a4-44bd-9d8d-532fe0feea9d');

// Ask a participant to unmute – they can accept or deny
sambaFrame.requestUnmute('9efc7798-a1a4-44bd-9d8d-532fe0feea9d');

These methods control the audio of selected participants. Muting shows a confirmation popup inside the session to avoid accidental mutes, and unmuting is always a request: a remote user cannot be forcefully unmuted, as that would be a privacy concern, so they see a prompt they can accept or deny.

Changing participant roles:

// Promote a user to moderator
sambaFrame.changeRole('9efc7798-a1a4-44bd-9d8d-532fe0feea9d', 'moderator');

// Demote the same user back to attendee
sambaFrame.changeRole('9efc7798-a1a4-44bd-9d8d-532fe0feea9d', 'attendee');

This is how you switch participants between roles mid-session – promoting an attendee to speaker for their segment, then back again. The roleChanged SDK event fires whenever a role changes, so your interface can react in real time.

Switching the visual focus:

// Pin the presenter's video tile
sambaFrame.pinUser('9efc7798-a1a4-44bd-9d8d-532fe0feea9d');

// Or maximise (fullscreen) their screenshare tile
sambaFrame.maximizeUser('9efc7798-a1a4-44bd-9d8d-532fe0feea9d', 'screenshare');

// Revert the maximised view
sambaFrame.minimizeUser();

Pinning and maximising change which tile is in focus in the view where you call them, without touching anyone's permissions – the visual half of switching. To change who can actually speak, use allowBroadcast or changeRole.

Beyond these, the SDK offers listUsers() to retrieve everyone currently in the room with their roles, lowerHand() to lower a participant's raised hand, and removeUser() to remove a disruptive participant entirely. Together they cover the core actions you need to build a custom participants panel.

For more detail on role changes via the SDK, see our article How to Dynamically Modify Roles Using the Digital Samba SDK.

Frequently asked questions

What preset roles does Digital Samba provide?

Five presets come ready to use: Moderator (all permissions), Speaker (broadcast, screen share and presentation rights without management rights), Attendee (view-only, with raise hand), Teacher (same rights as Moderator) and Student (can view, broadcast and edit the whiteboard, with no moderation rights). You can also create as many custom roles as you need.

How do participants get their role in a session?

Each participant's room token can carry a role property with the role's name or id. Participants who join without a token, or with a token that has no role, receive the room's default role, which you choose in the room's general settings.

Can a moderator unmute a participant remotely?

No – unmuting is always a request. The participant sees a prompt and can accept or deny it, which protects their privacy. Muting a participant remotely is possible via the interface or the requestMute SDK method.

How do I switch the speaker during a live session?

Grant broadcast permissions with allowBroadcast, change the participant's role with changeRole, or bring a presenter's tile into focus with pinUser and maximizeUser. In the video call interface, moderators can do the same from the Participants panel and the call interface.

Can I remove a participant from a call?

Yes. Moderators can remove participants from the interface, and integrations can call the removeUser SDK method to remove a user from the room programmatically.

Enhance your video conferencing experience with Digital Samba

Managing participants in Digital Samba comes down to two complementary tools: the dashboard, where roles and permissions define what each participant may do, and the API and SDK, which let your application grant speaking rights, switch roles and control which tiles are in focus in real time.

Whether you run webinars, team meetings or virtual classrooms, the preset roles cover the common cases out of the box, and custom roles with granular, role-sensitive permissions handle everything else – all on a GDPR-compliant, EU-hosted platform.

Ready to build this into your own product? Contact our sales team to learn more, or start prototyping with the Digital Samba Embedded API and SDK today.