createScreenShareVideoTrack

Creates a screen share video track asynchronously.

The track is created asynchronously and delivered via the CustomTrackListener callback. The data parameter should be the result Intent from a MediaProjection permission request.

Code Example:


VideoSDK.createScreenShareVideoTrack("h720p_15fps", data, context) { track ->
    if (track != null) {
        meeting.enableScreenShare(track, true)
    }
}

Parameters

encoderConfig

Screen share resolution preset (e.g., "h720p_15fps"). If null, defaults to "h720p_15fps". Available presets: "h360p_30fps", "h720p_5fps", "h720p_15fps", "h1080p_15fps", "h1080p_30fps".

data

The Intent data received from the media projection permission result.

context

Application context.

listener

Callback that receives the created CustomStreamTrack when ready.