Microsoft.Phone.BackgroundAudio Namespace

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The Microsoft.Phone.BackgroundAudio namespace provides functionality that plays audio in the background while other applications are running in the foreground.

For more information, see the Background audio overview for Windows Phone 8.

Important Note:

Apps using the Microsoft.Phone.BackgroundAudio namespace must use the MediaHistory or MediaHistoryItem class in order to have access to the Zune media library on the device.


Class Description
AudioPlayerAgent An implementation of a BackgroundAgent specifically designed to play audio in the background.
AudioStreamer Represents an audio stream that can be played back by the system audio player.
AudioStreamingAgent A background agent that performs per-track streaming for playback.
AudioTrack Represents a single track of audio.
BackgroundAudioPlayer Provides background access to audio playback functionality such as play, pause, fast-forward, and rewind.
PlayStateChangedEventArgs Provides data for the PlayStateChanged event.


Enumeration Description
EnabledPlayerControls Specifies which audio playback controls are enabled in the system user interface.
PlayState Indicates the possible states that the player can be in, with respect to the current application's background audio.
UserAction Indicates the possible user actions.