MyPodCast contains two major parts:
- MusicService: This implements Android.Service.Media.MediaBrowserService, which provides media content such as mp3 podcast sources, cover images, and podcast information to Android Auto. MusicService also controls Android Auto's media player functions, such as play, pause, play next, play previous, and add a podcast as favorite. MusicService typically runs as a background service, does not need a UI, and will intercept requests coming from Android Auto to provide podcast sources and also help control the media player.
The following screenshot shows the Android Auto media player, which interfaces with your MusicService:
Android Auto interfacing with MusicService
- Android mobile media player: This application provides functionalities such as content browsing and media player functions by interfacing with MusicService in the same way as Android Auto. You want your users to play your podcasts not only on Android Auto while driving, but also simply by using their mobile phone.
The following screenshot shows the Android media player application you will be building:
Android media player application