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
2.) Select You Project (2) or Create New Project (2)
How to using YouTube API to Embed Video in You Android App?
3.) Click -> Enabled APIs and services
How to using YouTube API to Embed Video in You Android App?
4.) Click -> YouTube Data API v3
How to using YouTube API to Embed Video in You Android App?
5.) Click -> Enable
How to using YouTube API to Embed Video in You Android App?
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?
7.) You need create client id, see screenshot
How to using YouTube API to Embed Video in You Android App?
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?
9.) Please select you API KEY
How to using YouTube API to Embed Video in You Android App?
10.) Please configure you API KEY, see screenshot
How to using YouTube API to Embed Video in You Android App?
11.) Please copy you API KEY
How to using YouTube API to Embed Video in You Android App?
12.) Please enter you API KEY to app config Constants.java. You need modify value of constant "YOUTUBE_API_KEY"