Collapse the table of content
Expand the table of content

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 noteImportant 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.

Public classAudioPlayerAgentAn implementation of a BackgroundAgent specifically designed to play audio in the background.
Public classAudioStreamerRepresents an audio stream that can be played back by the system audio player.
Public classAudioStreamingAgentA background agent that performs per-track streaming for playback.
Public classAudioTrackRepresents a single track of audio.
Public classBackgroundAudioPlayerProvides background access to audio playback functionality such as play, pause, fast-forward, and rewind.
Public classPlayStateChangedEventArgsProvides data for the PlayStateChanged event.

Public enumerationEnabledPlayerControlsSpecifies which audio playback controls are enabled in the system user interface.
Public enumerationPlayStateIndicates the possible states that the player can be in, with respect to the current application's background audio.
Public enumerationUserActionIndicates the possible user actions.

© 2017 Microsoft