Youtube-API
suggest changeRemarks
- First of all, you need to download the latest jar from below link https://developers.google.com/youtube/android/player/downloads/
- You need to include this jar in your project. Copy and paste this jar into the
libsfolder, and add it in the Gradle file:
dependencies {
compile files('libs/YouTubeAndroidPlayerApi.jar')
}
- You need an API key to access the YouTube API. Follow this link: https://developers.google.com/youtube/android/player/register to generate your API key.
- Clean and build your project. Now you’re ready to use the YouTube Android Player API. To play a YouTube video, you need its video id. For example, in https://www.youtube.com/watch?v=B08iLAtS3AQ,
B08iLAtS3AQis the video id.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents