Youtube Video link on Android Studio

I am displaying a database from firebase and I want to replace the image with either a YouTube link or just display the video on the app. Also, I am using a card view for the recyclerview. How would I implement that if I want to save the link as "video" in my exercise database?
Youtube Video link on Android Studio

Youtube Video link on Android Studio

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

for show youtube video in your android app please see this library :
android youtube player github

you can simply add video id to this view and it will show the video from youtube :

        app:autoPlay="true" />

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply