Hi, I'm getting the following error in a small amount of my users. It crashes the application, unfortunately, so the impact is considerable:
InflateException
Binary XML file line #7 in com.pushscroll.pushscrollapp:layout/player_view_texture: Binary XML file line #7 in com.pushscroll.pushscrollapp:layout/player_view_texture: Error inflating class androidx.media3.ui.PlayerView
Binary XML file line #64 in com.pushscroll.pushscrollapp:layout/exo_player_control_view: Binary XML file line #64 in com.pushscroll.pushscrollapp:layout/exo_player_control_view: Error inflating class ImageButton
Binary XML file line #64 in com.pushscroll.pushscrollapp:layout/exo_player_control_view: Error inflating class ImageButton
Drawable (missing name) with resource ID #0x7f0800cf
val playerState = rememberVideoPlayerState()
LaunchedEffect(Unit) {
playerState.loop = false
playerState.volume = 0f
playerState.error?.let {
reportUnexpectedState(TAG, "Video error: $it", emptyMap())
playerState.clearError()
}
val uri = getLocalFilePathFor("onboarding_start_background.mp4")
playerState.openFile(PlatformFile(uri))
}
Box(
modifier = Modifier
.fillMaxSize(),
contentAlignment = Alignment.Center
) {
VideoPlayerSurface(
playerState = playerState,
modifier = Modifier.fillMaxSize(),
contentScale = ContentScale.Crop
)
}
Impacted users are on Android 12 on a Pixel 6 Pro (although I don't have that many). Thank you!
Hi, I'm getting the following error in a small amount of my users. It crashes the application, unfortunately, so the impact is considerable:
Impacted users are on Android 12 on a Pixel 6 Pro (although I don't have that many). Thank you!