IntermediatePlayState Property
Collapse the table of content
Expand the table of content

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)

Public ReadOnly Property IntermediatePlayState As PlayState

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

© 2017 Microsoft