FloatingParticipantVideo

fun BoxScope.FloatingParticipantVideo(modifier: Modifier = Modifier, call: Call, participant: ParticipantState, parentBounds: IntSize, alignment: Alignment = Alignment.TopEnd, style: VideoRendererStyle = RegularVideoRendererStyle(isShowingConnectionQualityIndicator = false), videoRenderer: @Composable (ParticipantState) -> Unit = { ParticipantVideo( modifier = Modifier .fillMaxSize() .clip(VideoTheme.shapes.dialog), call = call, participant = participant, style = style, ) })

Represents a floating item used to feature a participant video, usually the local participant. This component must be used inside Box.

Parameters

modifier

Modifier for styling.

call

The call containing state.

participant

The participant to render.

parentBounds

Bounds of the parent, used to constrain the component to the parent bounds, when dragging the floating UI around the screen.

alignment

Determines where the floating participant video will be placed.

style

Defined properties for styling a single video call track.