Android TV OS 为数百万台电视、流媒体设备和付费电视机顶盒提供支持。
Google TV 是一种全新体验,最初仅在 Chromecast with Google TV 上提供,之后会陆续在更多设备上推出。
为 Android TV 构建的所有应用都可在运行 Google TV 的设备上使用。为在 Google TV 上提供最佳用户体验,我们建议您应用本指南中的最佳实践。
基准要求
支持 Google Cast:借助 Google Cast,您可以扩展 Android、iOS 和 Chrome 应用,以实现向 Android TV、Chromecast 设备和 Google 助理设备流式传输音频和视频。如需了解详情,请参阅 Google Cast 文档。
使用媒体会话:媒体会话提供了一种与音频或视频播放器互动的方式。当应用告知 Android 它正在播放媒体时,播放控制权可以委托给该应用。通过与媒体会话集成,应用可以向外部通告媒体播放,并接收来自外部来源的播放命令。这些来源可以是实体按钮,例如耳机或电视遥控器上的播放按钮,也可以是间接命令,例如向 Google 助理发出“暂停”指令。然后,媒体会话会将这些命令委托给应用,应用会将这些命令应用于命令来源的媒体播放器。如需了解详情,请参阅使用媒体会话。
在各种平台上发现内容
提供媒体操作 Feed:当您向 Google 提供 JSON 媒体操作 Feed 时,您的内容可以通过 Google TV 推荐和其他 Google 平台(例如 Google 搜索)被发现。您提供的深层链接可让用户直接开始播放您的内容,从而提高互动度。该 Feed 还支持设备端搜索,以及使用 Google 助理语音指令播放媒体。
Google 一次会与数量有限的提供商合作,并将这些提供商集成到此功能中。如需了解详情,请参阅媒体操作文档。
集成“接下来观看”:“接下来观看”功能可让用户重新开始观看您应用中的内容。当用户中途离开您的应用时,无论是正在观看电影还是正在观看电视剧,您都可以使用“接下来观看”功能直接在 Google TV 主屏幕上显示相应内容。用户可以选择某个功能块,直接深层链接到您应用内的播放内容。请注意,必须通过质量认证的“接下来观看”集成才能在 Google TV 设备上显示。如需了解详情,请参阅“接下来观看”文档。
语音和互动
支持账号关联:账号关联功能可将用户的 Google 账号与您应用的账号无缝关联,从而为应用的现有用户和新用户提供顺畅的用户体验。账号关联是其他功能(例如无缝订阅、授权同步和语音投屏)的前提条件。
为 Android TV OS 构建的应用适用于电视生态系统中的所有设备,包括新推出的 Google TV 品牌设备。如需了解设备是否提供 Google TV 体验(例如用于分析),您可以根据系统功能 com.google.android.feature.AMATI_EXPERIENCE 进行评估或过滤。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Best practices to drive engagement on Google TV\n\nAndroid TV OS powers millions of TVs, streaming devices, and PayTV set-top boxes.\nGoogle TV is a brand-new experience available first on the Chromecast with\nGoogle TV and to more devices over time.\n\nAll apps built for Android TV work on devices running Google TV. To\nprovide the best user experience on Google TV, we recommend that you\napply the best practices in this guide.\n| **Note:** To ensure a great user experience, all TV apps must meet specific requirements for usability before they are available for TVs on Google Play. For more information, see [TV app quality](/docs/quality-guidelines/tv-app-quality).\n\nBaseline requirements\n---------------------\n\n- **Support Google Cast:** Google Cast lets you extend your Android, iOS, and Chrome apps to enable audio and video streaming to Android TVs as well as Chromecast devices and Assistant devices. For more information, see the [Google Cast\n documentation](https://developers.google.com/cast/docs/developers).\n- **Use media sessions:** media sessions provide a universal way of interacting with an audio or video player. When an app informs Android that it is playing media, playback controls can be delegated to the app. Integrating with the media session lets an app advertise media playback externally and receive playback commands from external sources. These sources can be physical buttons, such as the play button on a headset or TV remote control, or indirect commands, such as instructing \"pause\" to Google Assistant. The media session then delegates these commands to the app, which applies them to the media player where the commands originated. See [Using a media session](/guide/topics/media-apps/working-with-a-media-session) for more details.\n\nContent discovery across surfaces\n---------------------------------\n\n- **Offer a media actions feed:** when you provide a JSON media actions feed to Google,\n your content can be discovered through Google TV recommendations and\n other Google surfaces, such as Google Search. The deep links you provide let\n users jump directly into playback of your content to increase engagement. The\n feed also enables on-device search and the ability to play media using Google\n Assistant voice commands.\n\n Google is working with a limited number of\n providers at a time to integrate them into this feature. For more details,\n see the\n [Media Actions documentation](https://developers.google.com/actions/media).\n- **Integrate Watch Next:** Watch Next lets users re-engage with the content in your\n app. When users leave your app partway through a movie or with a TV series in\n progress, you can surface that content directly on the Google TV home screen\n using Watch Next. The user can select a tile to deep link directly\n into playback within your app. Note that a Watch Next integration must be\n certified for quality to show on Google TV devices. See the [Watch Next\n documentation](/training/tv/discovery/watch-next-add-programs) for more details.\n\nVoice and engagement\n--------------------\n\n- **Support account linking:** account linking provides seamless linking between a user's Google Account and your app's account to facilitate a streamlined user experience for your app's existing and new users. [Account\n linking](https://developers.google.com/identity/account-linking) is a prerequisite for other capabilities such as frictionless subscriptions, entitlement sync, and voice casting.\n- **Support entitlement sync:** if your media actions feed includes media with entitlement requirements---for example, a user needs to have a particular subscription to access content---you can support entitlement sync to declare which subscriptions a linked account has. See the [entitlements endpoint\n documentation](https://developers.google.com/actions/media/concepts/access-requirements#entitlements-endpoint) for more details.\n- **Offer voice casting:** voice casting lets your users initiate media playback on supported Cast devices through Google Assistant. You can enable this functionality by providing a [media actions](https://developers.google.com/actions/media) feed, supporting [account linking](https://developers.google.com/identity/account-linking/oauth-with-sign-in-linking?oauth=implicit), and creating a [Cast receiver](https://developers.google.com/cast/docs/developers).\n- **Enable Cast Connect:** with Cast Connect, your Android TV app can act as a Cast receiver. This lets you provide a richer experience and support interaction with the remote control. See the [Android TV Receiver Overview](https://developers.google.com/cast/docs/android_tv_receiver) for more details.\n\nUser acquisition\n----------------\n\n- **Integrate Google Play Billing:** use the Play Billing library to support in-app purchases and manage subscriptions across both mobile and TV. See the [billing\n documentation](/google/play/billing) for more details.\n- **Provide frictionless subscriptions:** by combining [streamlined account linking](https://developers.google.com/identity/account-linking/oauth-with-sign-in-linking?oauth=implicit), [Play Billing](/google/play/billing) with [real time developer notifications](/google/play/billing/getting-ready#configure-rtdn), and [silent sign-in](https://developers.google.com/android/reference/com/google/android/gms/auth/api/signin/GoogleSignInClient.html#silentSignIn%28%29), you can provide a seamless purchase experience for your users. Watch the [Frictionless Subscriptions video](https://www.youtube.com/watch?v=ARuf97ncE4w&list=PLWz5rJ2EKKc-Z8NeBXJkf1bzUVhx3fvh4&index=4) for more details.\n\nGoogle TV feature evaluation\n----------------------------\n\nAn app built for Android TV OS works for all the devices in the TV ecosystem,\nincluding new Google TV branded devices. To know whether a device\noffers the Google TV experience, for instance for analytics, you can\n[evaluate or\nfilter](/guide/topics/manifest/uses-feature-element#market-feature-filtering)\non the system feature `com.google.android.feature.AMATI_EXPERIENCE`."]]