CallContentVideoContentParams
data class CallContentVideoContentParams(val call: Call, val layoutType: LayoutType = LayoutType.DYNAMIC, val style: VideoRendererStyle = RegularVideoRendererStyle(), val videoRenderer: @Composable (modifier: Modifier, call: Call, participant: ParticipantState, style: VideoRendererStyle) -> Unit = { videoModifier, videoCall, videoParticipant, videoStyle ->
VideoTheme.componentFactory.ParticipantVideo(
params = ParticipantVideoParams(
call = videoCall,
participant = videoParticipant,
modifier = videoModifier,
style = videoStyle,
),
)
}, val floatingVideoRenderer: @Composable BoxScope.(call: Call, IntSize) -> Unit? = null)
Parameters for VideoComponentFactory.CallContentVideoContent.
Parameters
call
The call that contains all the participants state and tracks.
layoutType
The type of layout used to render the participants.
style
Defined properties for styling a single video call track.
videoRenderer
A single video renderer that renders each individual participant. Defaults to VideoComponentFactory.ParticipantVideo.
floatingVideoRenderer
A floating video renderer that renders the local participant. When null, the default floating video renderer is used.
Constructors
Link copied to clipboard
constructor(call: Call, layoutType: LayoutType = LayoutType.DYNAMIC, style: VideoRendererStyle = RegularVideoRendererStyle(), videoRenderer: @Composable (modifier: Modifier, call: Call, participant: ParticipantState, style: VideoRendererStyle) -> Unit = { videoModifier, videoCall, videoParticipant, videoStyle ->
VideoTheme.componentFactory.ParticipantVideo(
params = ParticipantVideoParams(
call = videoCall,
participant = videoParticipant,
modifier = videoModifier,
style = videoStyle,
),
)
}, floatingVideoRenderer: @Composable BoxScope.(call: Call, IntSize) -> Unit? = null)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val videoRenderer: @Composable (modifier: Modifier, call: Call, participant: ParticipantState, style: VideoRendererStyle) -> Unit