Package-level declarations

Types

Link copied to clipboard
data class VideoRendererConfig(val mirrorStream: Boolean = false, val modifiers: VideoRendererModifiersConfig = VideoRendererModifiersConfig(), val scalingType: VideoScalingType = defaultScalingType, val fallbackContent: @Composable (Call) -> Unit = {})
Link copied to clipboard
data class VideoRendererConfigCreationScope(var mirrorStream: Boolean = false, var modifiers: VideoRendererModifiersConfig = VideoRendererModifiersConfig(), var videoScalingType: VideoScalingType = defaultScalingType, var fallbackContent: @Composable (Call) -> Unit = { DefaultMediaTrackFallbackContent( modifier = Modifier, call = it, ) })
Link copied to clipboard
data class VideoRendererModifiersConfig(val containerModifier: BoxScope.() -> Modifier = defaultVideoContainerModifier, val componentModifier: BoxScope.() -> Modifier = defaultVideoComponentModifier)

The VideoRenderer consists of two components one Box that acts as a container and another AndroidView that holds the actual TextureView for rendering the video. Only modify these modifiers if you want to change the default behavior of the VideoRenderer and understand exactly the effect they have on the layout.

Link copied to clipboard
@StreamVideoExperimentalApi(message = "Experimental exposure of internal modifiers for the video renderer. Maybe removed in the future without notice.")
data class VideoRendererModifierScope(var containerModifier: BoxScope.() -> Modifier = defaultVideoContainerModifier, var componentModifier: BoxScope.() -> Modifier = defaultVideoComponentModifier)

A scope to create a modifier config.

Functions

Link copied to clipboard
@StreamVideoExperimentalApi(message = "Experimental exposure of internal modifiers for the video renderer. Maybe removed in the future without notice.")
inline fun videoComponentModifiers(block: VideoRendererModifierScope.() -> Unit): VideoRendererModifiersConfig

Builders scope for the builder function for the internal component modifiers.

Link copied to clipboard

A builder method for a video renderer config.