Building Live TV Apps
YOU SHOULD ALSO READ
Watching live television shows and other continuous, channel-based content is a big part of the TV experience. Android supports receiving and playback of live video content through the TV Input Framework in Android 5.0 (API level 21). This framework provides a unified method for receiving audio and video channel content from hardware sources, such as HDMI ports and built-in-tuners, and software sources, such as video streamed over the internet.
The framework enables developers to define live TV input sources by implementing a TV input service. This service publishes a list of channels and programs to the TV Provider. The live TV app on a TV device gets the list of available channels and programs from the TV Provider and displays them to a user. When a user selects a specific channel, the live TV app creates a session for the associated TV input service through the TV Input Manager, and tells the TV input service to tune to the requested channel and play the content to a display surface provided by the TV app.
The TV Input Framework is designed to provide access to a wide variety of live TV input sources and bring them together in a single user interface for users to browse, view, and enjoy content. Building a TV input service for your content can help make it more accessible on TV devices.
For more information about TV Input Framework, see the android.media.tv reference.
TV Apps Checklist
CHECKLIST SECTIONS
YOU SHOULD ALSO READ
Users enjoy the TV app experience when it is consistent, logical, and predictable. They should be able to navigate within your app and throughout Android TV without getting lost or having to "reset" the UI and start over. Users appreciate clear, colorful, and functional interfaces that make the experience magical. With these ideas in mind, you can create an app that fits nicely in Android TV and performs as users expect.
This checklist covers the main aspects of development for both apps and games and provides guidelines to ensure that your app provides the best possible experience. Additional considerations for games only are covered in the Gamessection.
For criteria that qualify an Android TV app on Google Play, seeTV App Quality.
TV Form Factor Support
These checklist items apply to Games and Apps.
- Identify the main TV activity with the
CATEGORY_LEANBACK_LAUNCHER
filter in the manifest. - Provide a home screen banner for each language supported by your app
- Launcher app banner measures 320x180 px
- Banner resource is located in the
drawables/xhdpi
directory - Banner image includes localized text to identify the app.
- Eliminate requirements for unsupported hardware in your app.
- Ensure permissions do not imply hardware requirements
User Interface Design
These checklist items apply to Games and Apps.
- Provide appropriate layout resources for landscape mode.
- Ensure that text and controls are large enough to be visible from a distance.
- Provide high-resolution bitmaps and icons for HDTV screens.
- Make sure your icons and logo conform to Android TV specifications.
- Allow for overscan in your layout.See Overscan.
- Make every UI element work with both D-pad and game controllers.See Creating Navigation and Handling Controllers.
- Change the background image as users browse through content.
- Customize the background color to match your branding in Leanback fragments.
- Ensure that your UI does not require a touch screen.
- Follow guidelines for effective advertising.
Search and Content Discovery
These checklist items apply to Games and Apps.
- Provide search results from your app in the Android TV global search box.See Provide Data.
- Provide TV-specific data fields for search.See Identify Columns.
- Make sure your app presents discovered content in a details screen that lets the user start watching the content immediately.
- Put relevant, actionable content and categories on the main screen, making it easy to discover content.
Games
These checklist items apply to Games.
- Show your game on the home screen with the
isGame
flag in the manifest. - Make sure game controller support does not depend upon the Start, Select, or Menu buttons (not all controllers have these).See Input Devices.
- Use a generic gamepad graphic (without specific controller branding) to show game button mappings.
- Check for both ethernet and WiFi connectivity.See Networking.
- Provide users with a clean exit.See Exit.
No comments:
Post a Comment