startScreenShare()

startScreenShare( { screenVideoSendSettings? } )

Follow the steps described inside react-native-daily-js to understand how to properly integrate the screen share for Android and iOS.

Starts a screen share from the local participant. If there is no meeting, or enable_screenshare is set to false for either the room or the meeting token, this method does nothing.

To confirm that screen sharing started, listen for participant-updated events and check the local user's tracks object for the screenVideo track information.

Returns null.

Screen share encodings can be customized by providing an optional screenVideoSendSettings object.

screenVideoSendSettings

Customize the screen share send settings by providing a screenVideoSendSettings object. The screenVideoSendSettings takes the same sendSettings object provided to the updateSendSettings() method in order to specify a preset or to provide a custom encoding. See the updateSendSettings() docs for more details.

Example