AudioPlayerAgent Class
Windows Phone
March 22, 2012
An implementation of a BackgroundAgent specifically designed to play audio in the background.
Namespace:
Microsoft.Phone.BackgroundAudio
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
The AudioPlayerAgent type exposes the following members.
| Name | Description | |
|---|---|---|
|
Abort | Informs the operating system that the agent is unable to perform its intended task and that it should not be launched again until the foreground application mitigates the blocking issue and reenables the agent. (Inherited from BackgroundAgent.) |
|
Equals | (Inherited from Object.) |
|
Finalize | (Inherited from Object.) |
|
GetHashCode | (Inherited from Object.) |
|
GetType | (Inherited from Object.) |
|
MemberwiseClone | (Inherited from Object.) |
|
NotifyComplete | Informs the operating system that the agent has completed its intended task for the current invocation of the agent. (Inherited from BackgroundAgent.) |
|
OnCancel | Called by the operating system to alert a background agent that it is going to be put into a dormant state or terminated. (Inherited from BackgroundAgent.) |
|
OnError | Called when there is an error with playback, such as an audio track not downloading correctly. |
|
OnPlayStateChanged | Called when the play state changes, except for the error state. |
|
OnUserAction | Called when the user requests an action using some application-provided UI or the Universal Volume Control (UVC) and the application has requested notification of the action. |
|
ToString | (Inherited from Object.) |