Skip to content

PlayerTrackBar

property

Delphi
property PlayerTrackBar: TTrackBar read GetPlayerTrackBar write SetPlayerTrackBar;
C++Builder
__property Vcl::Comctrls::TTrackBar* PlayerTrackBar = {read=GetPlayerTrackBar, write=SetPlayerTrackBar};

Associates a trackbar with the player (Delphi and C++Builder versions only).

To use it:

  • Put a trackbar component on the form.

  • Select the TVideoGrabber component in the Object Inspector.

  • Browse the PlayerTrackBar property and select the trackbar placed on the form.

At runtime, when a video clip is opened, the trackbar maximum (Max) is set to the number of frames of the video clip (1).

During playback, the trackbar cursor moves automatically according to the current position of the video clip played.

At the end of the clip (normal playback), the trackbar cursor stays on the last frame (StopPlayer sets it back to the beginning).

When the clip is paused, a new position can be set simply by moving the trackbar cursor.

(1) Note: the maximum of the trackbar is limited to 32768; see PlayerTrackBarScale for more information.