Current player state
Obtaining the current player state
The current player state can be read at any time from the PlayerState property.
E.g., to check whether the player is currently in the normal playing state:
if PlayerState = ps_Playing then...
To check whether the player is open and playing normally, backwards or faster:
if (PlayerState >= ps_Playing) and (PlayerState <= ps_FastRewinding) then...
To check whether the player is paused:
if PlayerState = ps_Paused then...
Player state notification
Each time the player state changes, the OnPlayerStateChanged event occurs and returns the old and the new state (of the TPlayerState type).