allowBroadcast()
allowBroadcast({id: string, audio?: boolean, video?: boolean) allowBroadcast(userId: string) - legacy
Grants broadcast permissions to the target user. The target user id is provided as the id
property.
With the new format, you can specify which broadcast permissions to grant:
audio
: When true, allows the user to broadcast audiovideo
: When true, allows the user to broadcast video
At least one of audio
or video
must be true when using the new format.
The target user will be able to turn on camera and/or microphone after this method is called, depending on the granted permissions.
Examples
Grant both audio and video permissions (using new format)
Grant only audio permission
Grant only video permission
DEPRECATED legacy format (grants both audio and video)
Sample use case: Have a custom participants panel in your integration and want moderators to be able to grant specific broadcast permissions to particular users, so they can turn on camera and/or microphone.
This is particularly useful in webinar scenarios where particular roles do not have broadcast permissions by default, and you want to give some participants the ability to speak (audio only) while others can both speak and be seen (audio and video).
Last updated