Join Slack
Powered by
How to add a video player into compose? AndroidVie...
# compose
r
RE
06/05/2021, 3:17 PM
How to add a video player into compose? AndroidView() is not good
k
Kirill Grouchnikov
06/05/2021, 3:22 PM
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
RE
06/05/2021, 3:25 PM
I use it on Android
RE
06/05/2021, 3:27 PM
Using AndroidView is very cumbersome, especially making video full screen mode
RE
06/05/2021, 3:30 PM
I wonder if Google can add a video player to compose, like "val playerState = rememberExoVideoPlayerState()" "ExoPlayer(state=playerState)"
c
Colton Idle
06/05/2021, 4:12 PM
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
6
Views
Open in Slack
Previous
Next