TV 设备提供许多娱乐选项,其中包含来自应用和相关内容服务的数千个选择。同时,大多数用户更喜欢使用尽可能少的输入源的电视。由于提供如此多的选择,您的应用应为用户提供快捷简单的路径来让用户发现和欣赏您的内容。
您可以通过主屏幕上的推荐、让应用可搜索,以及将您的内容与 Google 助理集成,帮助用户发现您的内容。本主题概述了其中每个方面,并提供了指向相关主题和资源的链接,以便您了解详情。
主屏幕上的推荐内容
Android TV 主屏幕使用“频道”和“节目”显示推荐内容。频道在主屏幕上以单独的行显示,并通过卡片显示该频道的所有可观看节目。
如需了解详情,请参阅主屏幕上的推荐内容。
使应用可搜索
Android TV 使用 Android 搜索界面从已安装应用中检索内容数据,并向用户提供搜索结果。应用的内容数据可以包含在这些结果中,以便用户能够即时访问应用中的内容。
如需了解详情,请参阅使 TV 应用可搜索。
与 Google 助理集成
通过实现搜索和播放控件,您的应用可与 Android TV 上的 Google 助理集成。如需简要了解相关信息,请参阅 Android 开发者博客上的这篇博文。
搜索
如果您使应用可搜索,Google 助理可以查询您的应用。请注意,您向 Google 助理提供的深层链接应该是通用链接或具有 android-app://
架构。
播放控件
Android TV 上的 Google 助理使用媒体会话向您的应用发送命令。
如果您使用的是 ExoPlayer,则可以使用 MediaSessionConnector
(ExoPlayer 的扩展程序)轻松与 Google 助理集成。如需了解详情,请阅读 Android 开发者博客上的这篇博文。
其他资源
如需详细了解如何帮助用户在 Android TV 上查找内容,请参阅下面列出的其他资源。
示例
This sample demonstrates how to implement an audio media app that works across multiple form factors. This sample app showcases different components that come with Leanback library. This sample demonstrates how to build live TV channel apps for Android TV using the TV Input Framework (TIF).Universal Android Music Player sample
Leanback Support Library Showcase App for Android TV
Android TV Channel app (TV Input) using TIF
Codelab
了解 Compose for TV 的基础知识,并创建 TV 应用中常用的两个页面。Compose for TV 简介
博客
Updated 2024年5月15日 Over the past year, we’ve seen significant growth of Android TV OS, reaching 220 million monthly active devices with a 47% year-over-year increase. This incredible engagement would not be possible without our dedicated developer community. A massive Updated 2024年5月14日 AI is unlocking experiences that were not even possible a few years ago, and we’ve been hard at work reimaging Android with AI at the core, to help enable you to build a whole new class of apps. At this year’s Google I/O, we’re covering how new tools Updated 2023年5月10日 Over the past year, we’ve continued to see significant growth on Android TV OS, now with over 150 million monthly active devices. In fact, according to Strategy Analytics, the Android TV streaming platform shipped on more devices worldwide than any Updated 2022年12月2日 Here’s a look at some of what’s new in Android 13 for TV. Android 13 brings new APIs to the big screen that help developers deliver high quality experiences to users across different device types. Android 13 brings new features to make interacting Updated 2022年11月21日 TLDR: Google TV and Android TV will be requiring Android App Bundles that are archivable starting in May 2023 to save storage for users. Over the past few decades, TV has transformed from linear channel surfing to on-demand content with multi-app Updated 2022年5月12日 Shobana Radhakrishnan, Senior Director of Engineering - Google TV Paul Lammertsma, Developer Relations Engineer Today, there is more entertainment content available than ever before. In fact, our research shows a third of U.S. households now watch Updated 2022年5月11日 There aren’t many platforms where you can build something and instantly reach billions of people around the world, not only on their phones—but their TVs, cars, tablets, watches, and more. Today, at Google I/O, we covered a number of ways Android Updated 2021年7月14日 Alongside today’s Android 12 Beta 3 release for mobile, we’re also bringing the third Beta of Android 12 to Android TVs. We’re excited to bring new media features, UI improvements, and privacy controls to the experience with Beta 3 while we continueEverything you need to know about Google TV and Android TV OS
15 Things to know for Android developers at Google I/O
Building pixel-perfect living room experiences with Compose for TV
Android 13 for TV is now available
App Bundles for Google TV and Android TV
What’s new with Google TV & Android TV OS
13 Things to know for Android developers at Google I/O!
Android 12 Beta 3 for TV is now available
视频
Updated 2022年11月10日 Updated 2020年8月12日 Updated 2020年8月10日 Updated 2020年8月10日 Updated 2020年8月9日 Updated 2018年5月9日 Updated 2017年5月19日Improving the TV user experience
Android development on Chrome OS
What’s new on Android TV
Cast Connect
Android Beyond Phones: Auto/Wear/TV/ChromeOS week preview
What’s new with Android TV (Google I/O '18)
Google I/O'17: Channel 2