videoAspect
fun Modifier.videoAspect(state: VideoSurfaceState, contentScale: VideoContentScale): Modifier(source)
Constrains this layout to the aspect the composition outputs.
Only VideoContentScale.Fit is sized from the video. The other two are asked to fill whatever space they are given, so constraining them would defeat them. Inert until the engine reports an output size.
Parameters
state
The surface state holding the output size.
contentScale
How the video fills the space it is given.