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
opts
Object containing the parameters of the method.
audio
Audio constraints to use when joining the room. Default: false.
autoJoin
Whether the screen share object should automatically join the room. Default: true.
layout
Layout to switch to as soon as the screen share joins the room.
positions
Layout positions to assign as soon as the screen share joins the room.
video
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: