メディア ブラウザ サービスの概要
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
メディア ブラウザ サービスを作成するには、サポートされている MediaBrowserServiceCompat
クラスまたは MediaLibraryService
クラスを拡張します。これにより、Android Auto と Android Automotive OS(AAOS)は、サービスを使用して次の処理を実行できます。
メディア ブラウザ サービスを使用して、他のクライアントがアプリからメディア コンテンツにアクセスできるようにすることも可能です。このメディア クライアントは、ユーザーのスマートフォン上の他のアプリでも、他のリモート クライアントでもかまいません。
目次
以下のページでは、メディア ブラウザの操作方法について詳しく説明します。
設計ガイドライン
デザイン ガイドラインの詳細については、以下をご覧ください。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-08-22 UTC。
[null,null,["最終更新日 2025-08-22 UTC。"],[],[],null,["# Media browser service overview\n\nYou create a media browser service by extending the supported\n[`MediaBrowserServiceCompat`](/reference/androidx/media/MediaBrowserServiceCompat) or [`MediaLibraryService`](/media/media3/session/serve-content) classes. Android\nAuto and Android Automotive OS (AAOS) can then use your service to:\n\n- Browse your app's content hierarchy to present a menu to the user.\n\n- Get the token for your app's [`MediaSessionCompat`](/reference/android/support/v4/media/session/MediaSessionCompat) object to control\n audio playback.\n\nYou can also use your media browser service to let other clients access media\ncontent from your app. These media clients might be other apps on a user's\nphone, or they can be other remote clients.\n\nContents\n--------\n\nThese pages detail how to work with the media browser:\n\n- [Media browser lifecycle](/training/cars/media/create-media-browsers/workflow)\n- [Build content hierarchy](/training/cars/media/create-media-browser/content-hierarchy)\n- [Apply content styles](/training/cars/media/create-media-browser/content-styles)\n- [Display media artwork](/training/cars/media/create-media-browser/media-artwork)\n- [Display browsable search results](/training/cars/media/create-media-browser/browsable-search)\n- [Implement custom browse actions](/training/cars/media/create-media-browser/custom-browse-actions)\n\nDesign guidelines\n-----------------\n\nTo learn more about design guidelines, see:\n\n- [Plan navigation tabs](https://developers.google.com/cars/design/create-apps/media-apps/navigation-tabs)\n- [Plan browsing views](https://developers.google.com/cars/design/create-apps/media-apps/browsing-views)"]]