PlayStateChangedEventArgs.IntermediatePlayState Property

May 11, 2014

Gets the intermediate state through which the audio player passed before it entered the current play state returned by CurrentPlayState.

Namespace:  Microsoft.Phone.BackgroundAudio
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public PlayState IntermediatePlayState { get; }

Property Value

Type: Microsoft.Phone.BackgroundAudio.PlayState
One of the enumeration values.

Typical values for IntermediatePlayState include TrackReady, TrackEnded, BufferingStarted, and BufferingStopped.

The value of IntermediatePlayState is never null. When the player has not passed through an intermediate state when its state changes, then the value of IntermediatePlayState is the same as the value of CurrentPlayState. For example, if you start to play a song and no buffering is required, then the value of both IntermediatePlayState and CurrentPlayState is Playing.

Here are some examples of state transitions:

  1. IntermediatePlayState = BufferingStopped

  2. CurrentPlayState = Playing

  1. IntermediatePlayState = TrackEnded

  2. CurrentPlayState = Stopped

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2014 Microsoft