PillarboxPlayerSurface

fun PillarboxPlayerSurface(player: Player?, modifier: Modifier = Modifier, surfaceType: SurfaceType = SurfaceType.Surface)(source)

A Composable function that displays a Player.

Since minSDK = 24, surfaceType should be always SurfaceType.Surface or SurfaceType.Spherical.

Choosing surface type Media3 documentation

Parameters

player

The Player instance to use for playback.

modifier

The Modifier to apply to the layout.

surfaceType

The SurfaceType to use for rendering the video.