How to using YouTube API to Embed Video in You Android App?
>
This guide will show you show how to configure application playing YouTube Video in You Android App.
Info!
How to register your application and create a "SHA1 fingerprint" you can use the official Google documentation! https://developers.google.com/youtube/android/player/register
How to register your application and create a "SHA1 fingerprint" you can use the official Google documentation! https://developers.google.com/youtube/android/player/register
1.) go to https://console.developers.google.com/
2.) Select You Project (2) or Create New Project (2)
![How to using YouTube API to Embed Video in You Android App?](1.png)
3.) Click -> Enabled APIs and services
![How to using YouTube API to Embed Video in You Android App?](2.png)
4.) Click -> YouTube Data API v3
![How to using YouTube API to Embed Video in You Android App?](3.png)
5.) Click -> Enable
![How to using YouTube API to Embed Video in You Android App?](4.png)
6.) Click -> "Credentials" in side menu (1), Click -> "Create credentials" (2) and select "OAuth client ID"
![How to using YouTube API to Embed Video in You Android App?](5.png)
7.) You need create client id, see screenshot
![How to using YouTube API to Embed Video in You Android App?](6.png)
8.) You need create API KEY. Click -> "Credentials" in side menu (1), Click -> "Create credentials" (2) and select "API key"
![How to using YouTube API to Embed Video in You Android App?](8.png)
9.) Please select you API KEY
![How to using YouTube API to Embed Video in You Android App?](9.png)
10.) Please configure you API KEY, see screenshot
![How to using YouTube API to Embed Video in You Android App?](10.png)
11.) Please copy you API KEY
![How to using YouTube API to Embed Video in You Android App?](11.png)
12.) Please enter you API KEY to app config Constants.java. You need modify value of constant "YOUTUBE_API_KEY"