Current player state
Current player state
Description
Obtaining the current player state
At any time it is possible to know the current player state by reading the PlayerState property.
E.g., to know if the player is currently in normal playing state:
if PlayerState = ps_Playing then...
E.g. to know if the player is opened and playing normally, backwards or faster:
if PlayerState >= ps_Playing then...
E.g. to know if the player is paused:
if PlayerState = ps_Paused then...
Player state notification
Each time the player state changes, the OnPlayerStateChanged event and returns the old and the new state (of TPlayerState type).