TV 入力サービスを作成する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ライブテレビ番組やその他の継続的なチャンネル ベースのコンテンツを視聴することは、テレビ体験の大きな部分を占めています。ユーザーは、チャンネル ブラウジングによってテレビで番組を選択して視聴することに慣れています。TV 入力フレームワークは、テレビ番組ガイドに動画や音楽コンテンツを公開するためのチャンネルを作成します。
注意: TV 入力フレームワークは、OEM が Android システム TV アプリ用のチャンネルを作成するために使用することを想定しています。Android 5.0(API レベル 21)から Android 7.1(API レベル 25)でのみサポートされています。サードパーティ アプリは、Android TV ホーム画面の API を使用してコンテンツのチャンネルを構築する必要があります。詳しくは、 ホーム画面でコンテンツをおすすめするをご覧ください。
TV 入力フレームワークは、HDMI ポートや内蔵チューナーなどのハードウェア ソースから、インターネット経由でストリーミングされる動画などのソフトウェア ソースからライブ動画コンテンツを受信して再生するための統合された方法を提供します。
このフレームワークでは、デベロッパーはテレビ入力サービスを実装して、ライブテレビ入力ソースを定義できます。このサービスは、テレビ プロバイダにチャンネルと番組のリストを公開します。テレビデバイスのライブテレビ アプリは、利用可能なチャンネルと番組のリストをテレビ プロバイダから取得し、ユーザーに表示します。
ユーザーが特定のチャンネルを選択すると、ライブテレビ アプリは TV 入力マネージャーを介して関連するテレビ入力サービスのセッションを作成し、リクエストされたチャンネルにチューニングして TV アプリが提供するディスプレイ サーフェスでコンテンツを再生するよう、テレビ入力サービスに指示します。
図 1. テレビ入力フレームワークの機能図。
TV 入力フレームワークは、さまざまなライブテレビ入力ソースへのアクセスを提供し、それらを 1 つのユーザー インターフェースにまとめて、ユーザーがコンテンツをブラウジング、視聴、視聴できるように設計されています。
コンテンツ用の TV 入力サービスを構築すると、TV デバイスでコンテンツを利用しやすくなります。
詳しくは、
TV 入力サービスのサンプルアプリをご覧ください。
トピック
- テレビ入力サービスを開発する
- システム TV アプリと連携するテレビ入力サービスの開発方法について学習します。
- チャンネル データを利用する
- システムのチャンネル データと番組データを記述する方法を学習します。
- テレビのユーザー操作を管理する
- オーバーレイの表示、コンテンツの利用可能状況の管理、コンテンツの選択の処理について説明します。
- タイムシフトをサポートする
- テレビ入力サービスでタイムシフトをサポートする方法について説明します。
- コンテンツの録画をサポートする
- テレビ入力サービスでコンテンツの録画をサポートする方法について説明します。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[null,null,["最終更新日 2025-07-27 UTC。"],[],[],null,["# Build TV input services\n\nWatching live TV shows and other continuous, channel-based content is a big part of the TV\nexperience. Users are accustomed to selecting and watching shows on TV by channel browsing. The TV\nInput Framework creates channels for publishing video or music content in the TV programming\nguide.\n\n**Caution:** The TV Input Framework is meant to be used by OEMs to build\nchannels for the Android system TV app. It is supported in Android 5.0 (API level 21) through\nAndroid 7.1 (API level 25) only. Third-party apps should build channels for their content using\nthe Android TV home screen APIs. See [Recommend\ncontent on the home screen](/training/tv/discovery/recommendations) for details.\n\nThe TV Input Framework provides a unified method for the receiving and playback of live video content\nfrom hardware sources, such as HDMI ports and built-in-tuners, and software sources, such as video\nstreamed over the internet.\n\nThe\nframework lets developers define live TV input sources by implementing a TV input service.\nThis service publishes a list of channels and programs to the TV Provider. The live TV app on a TV\ndevice gets the list of available channels and programs from the TV Provider and displays them to a\nuser.\n\n\nWhen a user selects a specific channel, the live TV app creates a session for the associated\nTV input service through the TV Input Manager and tells the TV input service to tune to the\nrequested channel and play the content to a display surface provided by the TV app.\n\n\n**Figure 1.** Functional diagram of the TV Input Framework.\n\n\nThe TV Input Framework is designed to provide access to a wide variety of live TV input sources\nand bring them together in a single user interface where users can browse, view, and enjoy content.\nBuilding a TV input service for your content can help make it more accessible on TV devices.\n\n\nFor more details, check out the [TV Input Service](https://github.com/googlesamples/androidtv-sample-inputs) sample app.\n\nTopics\n------\n\n**[Develop a TV input service](/training/tv/tif/tvinput)**\n: Learn how to develop a TV input service that works with the system TV app.\n\n**[Work with channel data](/training/tv/tif/channel)**\n: Learn how to describe channel and program data for the system.\n\n**[Manage TV user interaction](/training/tv/tif/ui)**\n: Learn how to present overlays, manage content availability, and handle content selection.\n\n**[Support time-shifting](/training/tv/tif/time-shifting)**\n: Learn how to support time-shifting in your TV input service.\n\n**[Support content recording](/training/tv/tif/content-recording)**\n: Learn how to support content recording in your TV input service."]]