Play Youtube videos in your App

Gaurav Rajput
2 min readMay 23, 2020

Simple steps to be followed :

  1. Download youtube player API from https://developers.google.com/youtube/android/player/downloads
  2. Extract the downloaded file and copy “YouTubeAndroidPlayerApi.jar”
  3. Paste “YouTubeAndroidPlayerApi.jar” to your android project “libs” folder
  4. Register your application: open the credential page here https://console.developers.google.com/projectselector2/apis/credentials?supportedpurview=project&project&folder&organizationId
  5. 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”

--

--