create Screen Share Video Track
fun createScreenShareVideoTrack(encoderConfig: String, data: Intent, context: Context, listener: VideoSDK.CustomTrackListener)
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)
}
}
Content copied to clipboard
Parameters
encoder Config
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.