What is the best approach to play a youtube video ...
# compose
r
What is the best approach to play a youtube video in android jetpack compose app?
z
Probably the same way you'd play a YouTube video in a non-compose android app.
y
I assume its wrapping the Media3 or ExoPlayer view with AndroidView.
u
Turns out Exoplayer doesn't support youtube videos and the official recommendation from Google is to use Youtube Android player API which to no surprise is deprecated. @Zach Klippenstein (he/him) [MOD] Is there any other solution besides using a 3rd party open source library for playing youtube urls in compose? Does Google have any plans on providing a native solution?
z
I have no idea