OnAVIDurationUpdated
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 an AVI file just recorded is closed, if the AVIDurationUpdated property is enabled. This TOnAVIDurationUpdated event lets the application update the frame rate and/or the duration of the AVI clip, if needed.
This event is designed only to give access to the frame rate and duration of the AVI. Do not use it as a notification of the end of recording: the end of the recording is notified by the OnRecordingCompleted event, regardless of the kind of recording (AVI, ASF, MPEG).
Parameters:
-
FileName: returns the name of the recorded file.
-
FrameCount: 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).