PlayStateChangedEventArgs.IntermediatePlayState Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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)

Syntax

Public ReadOnly Property IntermediatePlayState As PlayState
public PlayState IntermediatePlayState { get; }

Property Value

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

Remarks

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

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

PlayStateChangedEventArgs Class

Microsoft.Phone.BackgroundAudio Namespace