You create a media browser service by extending the supported
MediaBrowserServiceCompat
or MediaLibraryService
classes. Android
Auto and Android Automotive OS (AAOS) can then use your service to:
Browse your app's content hierarchy to present a menu to the user.
Get the token for your app's
MediaSessionCompat
object to control audio playback.
You can also use your media browser service to let other clients access media content from your app. These media clients might be other apps on a user's phone, or they can be other remote clients.
Contents
These pages detail how to work with the media browser:
- Media browser lifecycle
- Build content hierarchy
- Apply content styles
- Display media artwork
- Display browsable search results
- Implement custom browse actions
Design guidelines
To learn more about design guidelines, see: