MusicProvider will be responsible for building the media sources. In this section, you will be creating the media sources from static content, but in Chapter 10, Hosting and Enhancing the Android Auto Podcast, you will be generating the media sources from the backend server hosted on Microsoft Azure Cloud:
- Open Visual Studio 2017.
- Go to File | Open | Project/Solution, go to your MyPodCast directory, and choose the MyPodCast.sln file.
- Right-click on MediaService folder | Add | New Item | select Visual C# Class, and name the file MusicProvider.cs.
- Click Add.
- Open MusicProvider.cs by double-clicking the file.
- Create a public class, MusicProvider, and add the following global variables to it:
- Add a PodcastSource constant ...