YouTube Android Player API

Published :

The YouTube Android Player API enables you to incorporate video playback functionality into your Android applications. The API defines methods for loading and playing YouTube videos (and playlists) and for customizing and controlling the video playback experience.

Using the API, you can load or cue videos into a player view embedded in your application’s UI. You can then control playback programmatically. For example, you can play, pause, or seek to a specific point in the currently loaded video.

You can also register event listeners to get callbacks for certain events, such as the player loading a video or the player state changing. Finally, the API has helper functionality to support orientation changes as well as transitions to fullscreen playback.

Getting Started

The following documents will help you to set up your development environment and use the YouTube Android Player API:

  • The download page provides a link to download the API client library and JavaDocs.
  • The instructions for registering your application explain how to register your app in the Google Developers Console and to obtain an Android API key, which you will need to use the API.
  • The setup instructions explain how to set up an API project using either Eclipse or IntelliJ.
  • The sample applications overview describes the sample applications included in the API download.
  • The JavaDoc reference provides detailed definitions of the API’s interfaces, classes, methods, and enums.


Original  :