Suresh Maidaragi
01/15/2025, 7:26 AMFATAL EXCEPTION: main
Process: xyz.penpencil.physicswala, PID: 7342
java.lang.ClassCastException: com.google.android.exoplayer2.ui.AspectRatioFrameLayout cannot be cast to androidx.media3.ui.AspectRatioFrameLayout
My native android project already has Google's Exoplayer and Media3 player, but I am sure that my KMP module is explicitly using
androidx.media3.ui.AspectRatioFrameLayout
not google 's exoplayer. Still compiler trying to use com.google.android.exoplayer2.ui.AspectRatioFrameLayout
the workaround which I found is, I ended up adding below's dependencies in native projects as well
implementation ("androidx.media3:media3-ui:1.4.0")
implementation ("androidx.media3:media3-exoplayer:1.4.0")
.
But this workaround I am using weird white overlay of video controls in native player.Suresh Maidaragi
01/15/2025, 7:30 AMSuresh Maidaragi
01/15/2025, 7:59 AMCiaran Sloan
01/15/2025, 8:00 AMSuresh Maidaragi
01/15/2025, 8:08 AM