InFrameProgressEvent
property, read-only
Delphi
property InFrameProgressEvent: Boolean read GetInFrameProgressEvent;
C++Builder
__property bool InFrameProgressEvent = {read=GetInFrameProgressEvent, nodefault};
C#
public bool InFrameProgressEvent { get; }
VB.NET
Public ReadOnly Property InFrameProgressEvent As Boolean
C++/Qt
BOOL GetInFrameProgressEvent ();
Returns true if the OnFrameProgress event is currently occurring.
This property is useful e.g. when a trackbar tracks the player position. In this case, the OnChange event of the trackbar must not update the player position of TVideoGrabber if this event occurs while the trackbar is updated from the OnFrameProgress event; otherwise, a loop back update occurs and the trackbar motion is "jerky".
Sample code:
procedure TForm1.TrackBar1Change(Sender: TObject);
begin
if not VideoGrabber1.InFrameProgressEvent then begin
VideoGrabber1.PlayerFramePosition := TrackBar1.Position;
end;
end;