PlayerTrackBar
property
Delphi
property PlayerTrackBar: TTrackBar read GetPlayerTrackBar write SetPlayerTrackBar;
C++Builder
__property Vcl::Comctrls::TTrackBar* PlayerTrackBar = {read=GetPlayerTrackBar, write=SetPlayerTrackBar};
Associates a trackbar to the player (Delphi and C++Builder versions only).
To use it:
-
put a trackbar component on the form,
-
select the TVideoGrabber component with the object inspector,
-
browse the PlayerTrackBar property and select the trackbar you put on the form.
At runtime, when opening a video clip, the trackbar frequency 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.
When the clip is paused, you can set a new position simply by moving the trackbar cursor.
(1) note: the frequency of the trackbar is limited to 32768, see PlayerTrackBarScale for more information.