Skip to content

Current player state

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 check whether the player is currently in the normal playing state:
if PlayerState = ps_Playing then... E.g. to check whether the player is open and playing normally, backwards or faster:
if PlayerState >= ps_Playing then... E.g. 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 TPlayerState type).