ParticipantsScreenSharing

fun ParticipantsScreenSharing(call: Call, session: ScreenSharingSession, modifier: Modifier = Modifier, isZoomable: Boolean = true, style: VideoRendererStyle = ScreenSharingVideoRendererStyle(), videoRenderer: @Composable (modifier: Modifier, call: Call, participant: ParticipantState, style: VideoRendererStyle) -> Unit = { videoModifier, videoCall, videoParticipant, videoStyle -> ParticipantVideo( modifier = videoModifier, call = videoCall, participant = videoParticipant, style = videoStyle, ) }, screenSharingFallbackContent: @Composable (ScreenSharingSession) -> Unit = { val userName by it.participant.userNameOrId.collectAsStateWithLifecycle() val userImage by it.participant.image.collectAsStateWithLifecycle() UserAvatarBackground(userImage = userImage, userName = userName) })

Renders all the CallParticipants, based on the number of people in a call and the call state. Also takes into account if there are any screen sharing sessions active and adjusts the UI accordingly.

Parameters

call

The call that contains all the participants state and tracks.

session

The screen sharing session which is active.

modifier

Modifier for styling.

isZoomable

Decide to this screensharing video renderer is zoomable or not.

style

Defined properties for styling a single video call track.

videoRenderer

A single video renderer renders each individual participant.

screenSharingFallbackContent

Fallback content to show when the screen sharing session is loading or not available.