This topic has not yet been rated - Rate this topic

AudioPlayerAgent Class

July 26, 2012

An implementation of a BackgroundAgent specifically designed to play audio in the background.

System.Object
  Microsoft.Phone.BackgroundAgent
    Microsoft.Phone.BackgroundAudio.AudioPlayerAgent

Namespace:  Microsoft.Phone.BackgroundAudio
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
public class AudioPlayerAgent : BackgroundAgent
<AudioPlayerAgent .../>

The AudioPlayerAgent type exposes the following members.

  NameDescription
Public methodAudioPlayerAgentCreates a new instance of AudioPlayerAgent.
Top
  NameDescription
Protected methodAbortInforms 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.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodNotifyCompleteInforms the operating system that the agent has completed its intended task for the current invocation of the agent. (Inherited from BackgroundAgent.)
Protected methodOnCancelCalled 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.)
Protected methodOnErrorCalled when there is an error with playback, such as an audio track not downloading correctly.
Protected methodOnPlayStateChangedCalled when the play state changes, except for the error state.
Protected methodOnUserActionCalled 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.
Public methodToString (Inherited from Object.)
Top

Windows Phone OS

Supported in: 7.1

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.