Summary

This chapter began with an overview of the background audio player and showed how it is used to control the playback of local or remote audio files. You looked at how audio file information is represented by the AudioTrack class and examined the role of background audio agents, which are used to coordinate audio playback while your app is not running in the foreground. You saw that when used in the foreground, a BackgroundAudioPlayer forwards all calls to the registered AudioPlayerAgent. Conversely, when a BackgroundAudioPlayer is used in an AudioPlayerAgent, it directly affects playback on the device.

The chapter then demonstrated how to build a UI that leverages the background audio agent, for controlling playback while your app is ...

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.