How to add a video player into compose? AndroidVie...
# compose
r
How to add a video player into compose? AndroidView() is not good
k
You'll need to be a bit more specific. Do you need a cross-platform way? Or Android-only without using
AndroidView
(and if so, why not use this bridge)?
r
I use it on Android
Using AndroidView is very cumbersome, especially making video full screen mode
I wonder if Google can add a video player to compose, like "val playerState = rememberExoVideoPlayerState()" "ExoPlayer(state=playerState)"
c
I also hope that there are composables for maps, ad views, exo player, etc, but for right now AndroidView works just fine. I followed this tutorial for exoplayer. https://itnext.io/playing-a-video-with-jetpack-compose-10a453ff956