Skip to content

OnDVDiscontinuity

event

Deprecated

Kept for backward compatibility only.

Delphi
property OnDVDiscontinuity: TOnDVDiscontinuity read FOnDVDiscontinuity write FOnDVDiscontinuity;
C++Builder
__property TOnDVDiscontinuity OnDVDiscontinuity = {read=FOnDVDiscontinuity, write=FOnDVDiscontinuity};
typedef void __fastcall (__closure *TOnDVDiscontinuity)(System::TObject* Sender, bool &DeliverNewFrame);
C#
public event OnDVDiscontinuityEventHandler OnDVDiscontinuity;
public delegate void OnDVDiscontinuityEventHandler(object sender, TOnDVDiscontinuityEventArgs e);
VB.NET
Public Event OnDVDiscontinuity As OnDVDiscontinuityEventHandler
Public Delegate Sub OnDVDiscontinuityEventHandler(sender As Object, e As TOnDVDiscontinuityEventArgs)
C++/Qt
void SetOnDVDiscontinuity (TOnDVDiscontinuityCb OnDVDiscontinuityCb);
typedef void CALLBACK TOnDVDiscontinuityCb (void *Object, void *Sender, BOOL *DeliverNewFrame);

Occurs when a DV a discontinuity occurs

Remarks

Occurs when a time discontinuity is detected in the DV date/time, if available.

From this event it is possible to invoke e.g. StopRecording to stop the current recording, or RecordToNewFileNow to start a new recording when a time discontinuity is detected in the DV date/time data.

Set the DeliverNewFrame parameter to "false" to prevent the current video frame (that corresponds to the 1st frame of the new time) to be saved in the file generated when closing the current recording.

Important: from this event do not perform any actions with the potential to block, such as holding a critical section or waiting on another thread. Also, do not call any GDI or USER32.DLL APIs.