*** id: f09b8220-8acc-4e19-b85d-c21bcf6b405b title: startScreenShare slug: /js/reference/video/room-session/start-screen-share description: startScreenShare method for the RoomSession class. max-toc-depth: 3 ---------------- ### startScreenShare * **startScreenShare**(`opts`): `Promise` - See [RoomSessionScreenShare documentation](/docs/browser-sdk/v3/js/reference/video/room-session-screen-share) 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` - See [RoomSessionScreenShare documentation](/docs/browser-sdk/v3/js/reference/video/room-session-screen-share) for more details. #### Permissions * `room.self.screenshare` You need to specify the permissions when [creating the Video Room Token](/docs/apis/video/room-tokens/create-room-token) on the server side. #### Examples Sharing the screen together with the associated audio: ```js await roomSession.startScreenShare({ audio: true, video: true }); ``` Sharing the screen while changing layout: ```js await roomSession.startScreenShare({ audio: true, video: true, layout: "screen-share", positions: { self: "reserved-1", }, }); ```