InFrameProgressEvent
TVideoGrabber.InFrameProgressEvent |
||||
|
|
|
Returns true if the OnFrameProgress event is currently occurring.
Declaration
property InFrameProgressEvent: Boolean read GetInFrameProgressEvent;
__property bool InFrameProgressEvent=read=GetInFrameProgressEvent, nodefault
Property InFrameProgressEvent As Boolean
Description
Used to know if the OnFrameProgress event is currently occurring.
This property is useful e.g. when using a trackbar to track the player position. In this case the TrackBar's OnChange event must not update the TVideoGrabber's player position 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;
See Also
TFrameGrabberRGBFormat FrameGrabber FrameGrabberCurrentRGBFormat FrameGrabberRGBFormat GetFrameInfo GetFrameInfoString OnFrameBitmap OnFrameBitmapEventSynchrone WebcamStillCaptureButton
Created with the Personal Edition of HelpNDoc: Achieve Professional Documentation Results with a Help Authoring Tool