ParticipantVideoRenderer
fun ParticipantVideoRenderer(call: Call, participant: ParticipantState, scalingType: VideoScalingType = VideoScalingType.SCALE_ASPECT_FILL, 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.
videoFallbackContent
Content is shown the video track is failed to load or not available.