This package contains all the interfaces and classes of the YouTube Android Player API. This API enables you to easily play YouTube videos and display thumbnails of YouTube videos in your Android application.
There are two ways to play videos. The first option is to place a
YouTubePlayerView in your View hierarchy
and then use the
control video playback in the View. This gives a fine control of the
experience. For example, you can decide the size of the video, listen to
events from the player and control the playback.
The second option is to use the
YouTubeStandalonePlayer which will start
video playback in a separate activity. This is simpler to use, however it
gives you less flexibility and control over video playback. The
StandalonePlayer supports two modes, either fullscreen or lightbox.
In lightbox mode, the activity launching the player is still visible behind
the player, slightly dimmed.
The API is distributed together with a set of samples that give some examples of how to use specific parts, see the 'sample' directory in the distributed zip file.