startScreenShare
startScreenShare
- startScreenShare(
opts):Promise<RoomSessionScreenShare>- See RoomSessionScreenShare documentation for more details.
Adds a screen sharing instance to the room. You can create multiple screen sharing instances and add all of them to the room.
Parameters
Object containing the parameters of the method.
Audio constraints to use when joining the room. Default: false.
Whether the screen share object should automatically join the room. Default: true.
Layout to switch to as soon as the screen share joins the room.
Layout positions to assign as soon as the screen share joins the room.
Video constraints to use when joining the room. Default: true.
Returns
Promise<RoomSessionScreenShare> - See RoomSessionScreenShare documentation for more details.
Permissions
room.self.screenshare
You need to specify the permissions when creating the Video Room Token on the server side.
Examples
Sharing the screen together with the associated audio:
Sharing the screen while changing layout: