mattinger
07/22/2025, 3:15 PMval player = remember {
ExoPlayer.Builder(context).build().apply {
setMediaItem(
MediaItem.fromUri(url)
)
prepare()
}
}
PlayerSurface(
player = player,
modifier = sizeModifier
)Nitesh Singh
07/22/2025, 4:44 PMSurfaceView behind the scenes, try switching to TextureView, which retains the surface in the background.Nitesh Singh
07/22/2025, 4:44 PMPlayerSurface, ensure it's using TextureViewNitesh Singh
07/22/2025, 4:45 PMmattinger
07/22/2025, 4:46 PMNitesh Singh
07/22/2025, 4:46 PMNitesh Singh
07/22/2025, 4:47 PM