AiutaVideoSurface
fun AiutaVideoSurface(video: AiutaMedia, modifier: Modifier = Modifier, autoPlay: Boolean = true, loop: Boolean = true, muted: Boolean = true, logger: AiutaLogger? = null)
Displays an AiutaMedia surface, mirroring AiutaImage.
When AiutaMedia.videoSource is set, the video is played by a platform player (PlatformVideoPlayer) with AiutaMedia.imageResource shown as the shutter (poster) while the video buffers and if playback fails:
Android plays via Media3/ExoPlayer
iOS plays via AVPlayer
JVM/JS/WASM render the poster image (no player)
When AiutaMedia.videoSource is
null, only AiutaMedia.imageResource is shown.
AiutaMedia.contentScale drives how both the video and the poster are scaled.
Parameters
video
The media to be displayed
modifier
The modifier to be applied to the surface
autoPlay
Whether playback starts automatically
loop
Whether playback loops
muted
Whether audio is muted
logger
Optional logger used to report playback failures