2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
概要
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Media は、すべての Android 搭載車に安全でシームレスな接続型のインフォテインメント エクスペリエンスをもたらすメディアアプリを構築するためのプラットフォームを提供します。Media とは、メディアアプリの注意散漫防止の最適化(DO)再生とブラウジング エクスペリエンスを実現するように設計された Android システム アプリケーションです。Media は、Android オープンソース プロジェクト(AOSP)でその機能が完全に実装されています。
図 1. Media 画面のサンプル実装。
Media について詳しくは、次のページをご覧ください。
- システム コンポーネントとユーザーフロー。詳しくは、Media を操作するコンポーネントと最も一般的なユーザーフローをご確認ください。
- メディアを使用したラジオの実装。ラジオの UI を Media と統合して、メディアソースとラジオを 1 つのアプリケーションであるかのように操作可能にする方法について説明します。
- メディアのカスタマイズ。AOSP 構造内のさまざまなレベルに定義されているスタイルとアセットを扱う方法を示します。
- メディアカードの実装。メディアカードを実装して、タイトルやアルバムアートのようなメディア メタデータを表示します。メディアカードには、プレイリストなどのメディア アイテムのキューも表示できます。
用語
このセクションでは次の用語が使用されます。
メディアソース
Android MediaBrowserService API を実装して、再生コントロールとメディア アイテムのカタログのブラウジングを公開する Android アプリ。
メディア アイテム
メディアソース カタログの要素。次のいずれかをメディア アイテムとして設定できます。
- 再生可能なメディア アイテム。曲、本の章、ポッドキャストのエピソードなど、システムによって再生可能な音声セグメント。
- ブラウジング可能なメディア アイテム。曲のカテゴリ、最近の曲のフォルダ、アーティストや著者、視聴者で並べ替えたポッドキャストと再生可能なメディア アイテムといった再生可能、またはその他のブラウジング可能なメディア アイテムをグループにまとめるために使用される組織要素。
Media は以下の機能を備えています。
運転中 |
駐車中 |
---|
再生コントロール。
-
タイトル、アルバムアート、再生時間、説明、現在の再生位置など、現在再生中のメディア アイテム(曲など)の表示。
-
標準メディア アクションの実行(再生、停止、一時停止、早送りなど)。
-
カスタム メディア アクションの実行(メディアソースごとのカスタム アクション)。
-
メディアアプリに用意されている場合の再生キューの表示。
カタログの閲覧。
|
運転中の機能と次の機能:
-
ログイン。ログインが必要なメディアソースについては、Media から直接ログインフローを開始する必要があります。
-
設定。メディアソースは設定 UI を表示できます。
-
キーボードで検索。ユーザーは Media でテキスト検索を実行できます。
|
タスク
次の表に、各当事者のタスクを示します。
車両メーカー(vOEM) |
Google |
アプリ デベロッパー |
---|
- Android Automotive を使用して Android CDD に完全に準拠したインフォテインメント システムを構築する。
- MediaSession API と Browser API、および Media との相互運用性に関するすべての要件を満たす。
- ブラウジング構造を変更しない。
- カスタム アクションを変更しない。
- ログイン、設定などはアプリで行う。
- API で明示的にサポートされるアプリのブランド要素(アプリ名など)を変更しない。
|
- Media API を定義して改善する。
- AOSP で Media を実装する。
- Play ストアでのメディアアプリの公開について、アプリの審査プロセスを定義する。
- API、カスタマイズ、レビュー、認定プロセスなどの要素に関するドキュメントを提供する。
|
- Media API を実装する。
- メディア ブラウジングの全体的構造に適したコンテンツを提供する。
- 必要に応じてカスタム アクションを使用できるようにする。
- 再生状態をシステムが利用できるようにする。
- アプリ名などのブランド要素を提供する。
- 必要に応じて、ログイン、登録、設定、エラーの解決フローを実装する。
- 自動車の APK をビルドして Play ストアに公開する。
|
カスタマイズのガイドライン
AOSP で実装した Media では、Car UI ライブラリを使用したカスタマイズが可能です。ベーステーマと構造は、次の制限に従って変更を加えずに導入または変更できます。次の表に、Media のカスタマイズに関する OEM の責任を示します。
Media のカスタマイズ |
説明 |
---|
必要 |
カラーパレットやサイズ設定など、全体的なテーマとスタイルを調整する。 |
任意 |
Media の概要構造(タブの配置など)を変更する。 |
禁止 |
アプリのブランディングを含む、Media API のコントラクトを変更する。
- MediaSession と MediaBrowser の相互運用性
- メディアソース名、アイコン
以下に関する情報アーキテクチャを変更する。
|
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# Overview\n\n*Media* provides a platform on which to build media apps that provide safe,\nseamless, and connected infotainment experiences in every Android-enabled car.\nMedia is an Android system application designed to provide a\n[Distraction Optimized (DO)](/docs/automotive/driver_distraction/guidelines) playback\nand browse experience for media apps. A fully functional implementation of Media is included with\n[Android Open Source Project (AOSP)](/).\n\n\n\u003cbr /\u003e\n\n\n**Figure 1.** Media screen sample implementations.\n\nTo learn about Media, see the following pages:\n\n- **[System components and user flows](/docs/automotive/hmi/media/technical_details).** Learn more about the components that interact with Media, as well as the most common user flows.\n- **[Implement radio with media](/docs/automotive/hmi/media/radio).** Read how to integrate the Radio UI with Media to provide enable users to interact with media sources and radio as if they were a single application.\n- **[Customize media](/docs/automotive/hmi/media/customization).** Learn how to work with styles and assets defined at different levels in the AOSP structure.\n- **[Implement a media card](/docs/automotive/hmi/media/media-card).** Implement a media card to display media metadata such as titles, album art, and more. A media card can also display a queue of media items, such as a playlist.\n\nTerminology\n-----------\n\nThese terms are used in this section.\nMedia Source An Android app that implements the Android [MediaBrowserService API](https://developer.android.com/guide/topics/media-apps/audio-app/building-an-audio-app) to expose playback control and browsing of its catalog of media items. Media Item An element in the Media Source catalog. Media items can be either:\n\n- Playable Media items. Audio segments that can be played by the system such as songs, chapters of books, and episodes of podcasts\n- Browsable Media items. Organizational elements used to group playable or other browseable media items such as song categories, a recent songs folder, as well as podcasts and playable media items sorted by artist, author, or audience.\n\nMedia features\n--------------\n\nMedia provides these features.\n\n| While driving | While parked |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Playback control. - Presentation of currently playing media item (for example, a song), including title, album art, duration, description, and current play position. - Execution of standard media actions (for example, play, stop, pause, and skip forward). - Execution of custom media actions (custom actions provided by each media source). - Presentation of the playback queue, if provided by the media app. Catalog browse. - Display of top-level categories. - Drill down into browse-able media items (for example, folders). - Selection of playable media items (for example, songs) including title, album art, and indicators. For example, explicit content and downloaded content. | Everything listed under *While Driving* as well as: - Sign-in. For those media sources that require sign-in, it should be possible to start the sign in flow directly from Media. - Settings. Media source can display a settings UI. - Search, with keyboard. Users can perform a text search on Media. |\n\nTasks\n-----\n\nThis table describes the tasks of each party.\n\n| Vehicle makers (vOEMs) | Google | App developers |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| - Build a fully-compliant [Android CDD](/docs/compatibility/10/android-10-cdd) infotainment system with Android Automotive. - Fulfill all expectations of MediaSession and Browser APIs and the interoperability with Media: - Respect browse structure. - Respect custom actions. - Delegate to the app for sign-in, settings, and so on. - Respect the app branding elements explicitly supported by the APIs. For example, the app name. | - Define and evolve Media APIs. - Provide Media implementation in AOSP. - Define app review process for publishing of media apps on Play Store. - Provide documentation for elements such as APIs, customizations, review, and certification processes | - Implement Media APIs: - Provide overall media browse structure with appropriate content. - Provide custom actions as appropriate. - Make playback states available to the system. - Provide branding elements, such as app name. - Implement the sign-in, sign-up, settings, and error resolution flows, as needed. - Build and publish car APKs to the Play Store. |\n\nCustomization guidelines\n------------------------\n\nThe Media implementation included in AOSP uses\n[Car UI Library](/docs/automotive/hmi/car_ui) to enable\ncustomization and provides a base theme and structure that can be adopted as is or modified\naccording to the following restrictions. The following table describes OEM responsibilities\nregarding Media customization.\n\n| Media customization | Description |\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| SHOULD | Adjust overall theme and styling, including color pallette and sizing. |\n| MAY | Modify the high-level structure of Media (for example, tab placement). |\n| MUST NOT | Modify Media API contracts, including app branding: - MediaSession and MediaBrowser interoperability - Media source name, icon Modify information architecture of: - Playback - Browse - Search |"]]