Good Morning all. I am having a cosmetic issue with camera media3 compose (this might exist in the xml version too). If i play a video, and let the video run it's full length. Then i background the app, then foreground again, it's showing a black background over the player surface. However, when i pause the video in the middle and do the same, it shows the frame where it was paused.
I would have expected that in the first case, it would just render the last frame when it came back from the background instead of a black screen.
Copy code
val player = remember {
ExoPlayer.Builder(context).build().apply {
setMediaItem(
MediaItem.fromUri(url)
)
prepare()
}
}
PlayerSurface(
player = player,
modifier = sizeModifier
)