Pular para o conteúdo

Mais visitados

Visitados recentemente

navigation

Building TV Playback Apps

Dependencies and Prerequisites

  • Android 5.0 (API level 21) or higher

You should also read

Video

DevBytes: Android TV — Using the Leanback library

Browsing and playing media files is frequently part of the user experience provided by a TV app. Building such an experience from scratch, while making sure that it is fast, fluid, and attractive can be quite challenging. Whether your app provides access to a small or large media catalog, it is important to allow users to quickly browse options and get to the content they want.

The Android framework provides classes for building user interfaces for these types of apps with the v17 leanback support library. This library provides a framework of classes for creating an efficient and familiar interface for browsing and playing media files with minimal coding. The classes are designed to be extended and customized so you can create an experience that is unique to your app.

This class shows you how to build a TV app for browsing and playing media content using the Leanback support libraries for TV.

Topics

Creating a Catalog Browser
Learn how to use the Leanback support library to build a browsing interface for media catalogs.
Providing a Card View
Learn how to use the Leanback support library to build a card view for content items.
Building a Details View
Learn how to use the Leanback support library to build a details page for media items.
Use Leanback's Transport Controls
Learn how to use the Leanback support library to build transport controls for your video player.
Displaying a Now Playing Card
Learn how to use a MediaSession to display a Now Playing card on the home screen.
Render Video Directly on a Surface
Learn how your app can render a preview video directly on a surface of the home screen.
Adding a Guided Step
Learn how to use the Leanback support library to guide a user through a series of decisions.
Introducing First-time Users to Your App
Learn how to use the Leanback support library to show first-time users how to get the most out of your app.
Enabling Background Playback
Learn how to continue playback when the user clicks on Home.
Este site usa cookies para armazenar suas preferências quanto às opções de idioma e exibição específicas ao site.

Receba as dicas e notícias mais recentes para desenvolvedores Android que ajudarão você a ter sucesso no Google Play.

* Campos obrigatórios

Uhu!

Siga o Google Developers no WeChat

Navegar neste site em ?

Você solicitou uma página em , mas sua preferência de idioma para este site está definida como .

Quer alterar sua preferência de idioma e navegar neste site em ? Para alterar a preferência de idioma depois, use o menu de idiomas na parte inferior de cada página.

É preciso ter o nível de API ou superior para esta aula

Este documento está oculto porque o nível de API selecionado para a documentação é o . Para alterar o nível, clique no seletor acima da barra de navegação esquerda.

Para mais informações sobre como especificar o nível de API que o seu app precisa, leia o artigo Compatibilidade com diferentes versões de plataforma.

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)