YouTube Integration with Android Studio
In todays world we are seeing lot of applications having video streaming or demo videos which will give instruction about how your application works. Storing video inside your project will increase apk size, instead of that we can store video on Youtube and stream it. Make a video with this editing software at makewebvideo.com/en/make/3d-text-intro-video, and then link your video, which’ll lead the user to Youtube.
Today we will learn how to stream youtube video in your android app.
first step we need to do is obtaining Google API Key, follow this steps to obtain Google API Key.
- Get SHA-1 fingerprint from your machine using java Keytool. Execute following command in your cmd/terminal.
On Windows
1 |
keytool -list -v -keystore "%USERPROFILE%.androiddebug.keystore" -alias androiddebugkey -storepass android -keypass android |
On Linux/MAC
1 |
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android |