AudioPlayerAgent Sample
The custom audio player agent for this section includes a simple playlist, which includes both locally stored and remote audio files. The class is called BackgroundAudioPlayerAgent
, and it is located in the WPUnleashed.BackgroundAudio project, within the BackgroundAudio solution in the downloadable sample code.
A static list of audio tracks defines the playlist, shown in the following excerpt:
static readonly List<AudioTrack> playList = new List<AudioTrack> { new AudioTrack(new Uri("AudioFiles/Audio01.wma", UriKind.Relative), "Ringtone 1", // title "Windows Phone" ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.