Skip to content

TPlayerState

type

TPlayerState = (ps_Closed, ps_Stopped, ps_Paused, ps_Playing, ps_PlayingBackward, ps_FastForwarding, ps_FastRewinding, ps_Downloading, ps_DownloadCompleted, ps_DownloadCancelled, ps_Opened);

Type used by the PlayerState property and OnPlayerStateChanged events.

The possible values are:

ps_Closed ps_Stopped ps_Paused ps_Playing ps_PlayingBackward ps_FastForwarding ps_FastRewinding ps_Downloading ps_DownloadCompleted ps_DownloadCancelled

Each value is greater than the previous one, so it is possible to test e.g. if the clip is playing in any direction by testing PlayerState >= ps_Playing.