Embed Native YouTube Videos in Android apps [YouTube Player API]

December 23, 2012 | Author:

Share

Google Demoed YoutTube APIs at Google IO 2012 promising  strong integration of YouTube video components into android applications and iOS at a later stage.

Google had opened up access to limited set of developers like Flipboard, which had been using and helping Google improve the Youtube API. YouTube native API for Android is finally out, and it hopes to simplify all types of YouTube integrations.

YouTube player API offers these benefits:

Apps like Flipboard, BuzzFeed, 9x9TV have already been using the Youtube Player API.

How to get started with Youtube Player API for Android

Step 1. You need a API client library available at  download page along with JavaDocs.(JavaDoc reference)

Step 2. Register your application in Google API console and obtain API key that would need to use in the app. (How to)

Step 3. Go through sample applications that describe the API usage in all video embedding formats.

Available samples:

  1. Video Wall
  2. Simple PlayerView
  3. Simple PlayerFragment
  4. Custom Player Controls
  5. Custom Fullscreen Handling
  6. Overlay ActionBar Demo
  7. Standalone Player
  8. YouTube App Launcher Intents

Checkout the Video below, it will walk you through Samples, YoutubePlayerApi usage and more.




Follow us on Google+TwitterFacebook for latest in Android.

Comments

  • http://www.slideboom.com/presentations/671635/Android-Apps-Development-in-Australia Owen Gates

    ya I came to know from your site that features of YouTube player API.you provide here with steps so that I could download it and could get this benefits.

  • Sathishkumar V

    Your downloading instructions helped me a lot to embed youtube video in my android device buddy. Thanks a lot

blog comments powered by Disqus