VideoRenderer

fun VideoRenderer(modifier: Modifier = Modifier, call: Call, video: ParticipantState.Media?, videoRendererConfig: VideoRendererConfig = videoRenderConfig(), onRendered: (VideoTextureViewRenderer) -> Unit = {})


fun VideoRenderer(call: Call, video: ParticipantState.Media?, modifier: Modifier = Modifier, videoScalingType: VideoScalingType = VideoScalingType.SCALE_ASPECT_FILL, videoFallbackContent: @Composable (Call) -> Unit = { DefaultMediaTrackFallbackContent( modifier, call, ) }, onRendered: (VideoTextureViewRenderer) -> Unit = {})

Deprecated

Use VideoRenderer which accepts `videoConfig` instead.

Renders a single video track based on the call state.

Parameters

call

The call state that contains all the tracks and participants.

video

A media contains a video track or an audio track to be rendered.

modifier

Modifier for styling.

videoScalingType

Setup the video scale type of this renderer.

videoFallbackContent

Content is shown the video track is failed to load or not available.

onRendered

An interface that will be invoked when the video is rendered.