PlayerViewConfig
data class PlayerViewConfig(val uiConfig: UiConfig = UiConfig.WebUi(), val hideFirstFrame: Boolean = false, val scalingMode: ScalingMode = ScalingMode.Fit, val enableComposeSurfaceSyncWorkaround: Boolean = false)
Configures the visual presentation and behaviour of the PlayerView.
Constructors
Link copied to clipboard
constructor(uiConfig: UiConfig = UiConfig.WebUi(), hideFirstFrame: Boolean = false, scalingMode: ScalingMode = ScalingMode.Fit, enableComposeSurfaceSyncWorkaround: Boolean = false)
Properties
Link copied to clipboard
Whether to enable a workaround for the Compose AndroidView and SurfaceView compatibility issue described in androidx/media#1237
Link copied to clipboard
Whether the first frame of the main content will not be shown before playback starts. Default is false
.
Link copied to clipboard
Specifies how the video content is scaled or stretched within the parent container's bounds. Default is ScalingMode.Fit.