BackgroundAudioPlayer Class
July 26, 2012
Provides background access to audio playback functionality such as play, pause, fast-forward, and rewind.
Namespace:
Microsoft.Phone.BackgroundAudio
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
The BackgroundAudioPlayer type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | BufferingProgress | The amount of buffering that is completed for the media content. |
![]() | CanPause | Gets a value indicating whether the media can be paused when the Pause() method is called. |
![]() | CanSeek | Gets a value indicating whether the media can be repositioned by setting the value of the Position property. |
![]() | Error | The last error, if any, to have occurred while playing the current AudioTrack. |
![]() ![]() | Instance | Returns an instance of the BackgroundAudioPlayer. If this application already has background audio playback resources allocated, the BackgroundAudioPlayer returned will contain references to those resources. |
![]() | PlayerState | Gets the current PlayState of the player. |
![]() | Position | Gets or sets the current position within the current Track. |
![]() | Track | Gets or sets the current track for this application, whether it is currently playing or not. |
![]() | Volume | The media's volume represented on a linear scale between 0 and 1. The default is 0.85. |
| Name | Description | |
|---|---|---|
![]() | Close | Closes the player and removes all resources reserved for it, including the current AudioTrack. |
![]() | Equals | (Inherited from Object.) |
![]() | FastForward | Starts fast-forwarding through the current AudioTrack. |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Pause | Pauses playback at the current position. |
![]() | Play | Plays or resumes the current AudioTrack at its current position. |
![]() | Rewind | Starts rewinding through the current AudioTrack. |
![]() | SkipNext | Skips to the next track. |
![]() | SkipPrevious | Skips to the previous track. |
![]() | Stop | Stops and resets media to be played from the beginning. |
![]() | ToString | (Inherited from Object.) |
This is the main class for performing playback options and registering for PlayStateChanged events independent of which playlist is currently playing. It is used by both the foreground application and the background agent. Rather than relying on events, the background agent relies on callbacks.
