Google TV

Choosing the right Player

You have two choices for integrating a media player within your app:

MediaPlayer

If you want to offer a custom player, use MediaPlayer, a low-level control that gives you more options. You must map the keyboard media keys to the player's controls, and you must handle audio focus.

VideoView

If you don't want to customize your player's UI and want something thats easier to integrate, you should use VideoView. VideoView is a high-level wrapper around MediaPlayer. It maps media keys to the player controls so you don't have to. You still have to handle audio focus.

You can find MediaPlayer and VideoView demos in Android APIDemos.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.