What is the best approach to play a youtube video in android jetpack compose app?
z
Zach Klippenstein (he/him) [MOD]
11/17/2021, 5:12 PM
Probably the same way you'd play a YouTube video in a non-compose android app.
y
yschimke
11/17/2021, 7:07 PM
I assume its wrapping the Media3 or ExoPlayer view with AndroidView.
u
Utkarsh Tiwari
04/17/2024, 12:48 AM
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?