Skip to content

OnAVIDurationUpdated

event

Delphi
property OnAVIDurationUpdated: TOnAVIDurationUpdated read FOnAVIDurationUpdated write FOnAVIDurationUpdated;
C++Builder
__property TOnAVIDurationUpdated OnAVIDurationUpdated = {read=FOnAVIDurationUpdated, write=FOnAVIDurationUpdated};
typedef void __fastcall (__closure *TOnAVIDurationUpdated)(System::TObject* Sender, System::UnicodeString FileName, System::LongWord FrameCount, double &FrameRate, LargeInteger &Duration);
C#
public event OnAVIDurationUpdatedEventHandler OnAVIDurationUpdated;
public delegate void OnAVIDurationUpdatedEventHandler(object sender, TOnAVIDurationUpdatedEventArgs e);
VB.NET
Public Event OnAVIDurationUpdated As OnAVIDurationUpdatedEventHandler
Public Delegate Sub OnAVIDurationUpdatedEventHandler(sender As Object, e As TOnAVIDurationUpdatedEventArgs)
C++/Qt
void SetOnAVIDurationUpdated (TOnAVIDurationUpdatedCb OnAVIDurationUpdatedCb);
typedef void CALLBACK TOnAVIDurationUpdatedCb (void *Object, void *Sender, wchar_t *FileName, unsigned int FrameCount, double *FrameRate, __int64 *Duration);

Occurs when closing an AVI file just recorded and the AVIDurationUpdated property is enabled. This TOnAVIDurationUpdated event lets you update the frame rate and/or duration of the AVI clip, if needed. This event is designed only to give access to the frame rate and duration of the AVI. Be sure not to use it as notification for the end of recording. The end of the recording is notified by the OnRecordingCompleted event, whatever the kind of recording (AVI, ASF, MPEG).

Parameters: FileName - returns the name of the file recorded; Frames - returns the number of frames recorded; FrameRate - returns the real frame rate (can be adjusted); Duration - returns the duration of the recording (can be adjusted).