Play Youtube videos in your App
2 min readMay 23, 2020
Simple steps to be followed :
- Download youtube player API from https://developers.google.com/youtube/android/player/downloads
- Extract the downloaded file and copy “YouTubeAndroidPlayerApi.jar”
- Paste “YouTubeAndroidPlayerApi.jar” to your android project “libs” folder
- Register your application: open the credential page here https://console.developers.google.com/projectselector2/apis/credentials?supportedpurview=project&project&folder&organizationId
- Click on create Project (if you don't have already).
Giver your project name: Let's say “FirstProject” then click on “Create”
4. Click on Create Credential
5. Click on “API Key”
6. Your API key is created. Copy it and just click on “register API”