ParticipantVideoRenderer
fun ParticipantVideoRenderer(call: Call, participant: ParticipantState, scalingType: VideoScalingType = VideoScalingType.SCALE_ASPECT_FILL, mirrorMode: MirrorMode = MirrorMode.AUTO, videoFallbackContent: @Composable (Call) -> Unit = {
val userName by participant.userNameOrId.collectAsStateWithLifecycle()
val userImage by participant.image.collectAsStateWithLifecycle()
UserAvatarBackground(userImage = userImage, userName = userName)
})
Renders a single participant with a given call, which contains all the call states. Also displays participant information with a label and connection quality indicator.
Parameters
call
The call that contains all the participants state and tracks.
participant
Participant to render.
scalingType
The scaling type for the video renderer.
mirrorMode
Controls horizontal mirroring of the video stream. Defaults to MirrorMode.AUTO which mirrors only the local self-view when using the front camera; remote participants are never mirrored.
videoFallbackContent
Content is shown the video track is failed to load or not available.