GetLastFrameWaitTimeoutMs
property
Delphi
property GetLastFrameWaitTimeoutMs: LongInt read GetGetLastFrameWaitTimeoutMs write SetGetLastFrameWaitTimeoutMs default DEF_GetLastFrameWaitTimeoutMs;
C++Builder
__property System::LongInt GetLastFrameWaitTimeoutMs = {read=GetGetLastFrameWaitTimeoutMs, write=SetGetLastFrameWaitTimeoutMs, default=0};
C#
public int GetLastFrameWaitTimeoutMs { get; set; }
VB.NET
Public Property GetLastFrameWaitTimeoutMs As Integer
C++/Qt
int GetGetLastFrameWaitTimeoutMs ();
void SetGetLastFrameWaitTimeoutMs (int Value);
by default the GetLastFrame... functions return the current video frame. When GetLastFrameWaitTimeoutMs is set to a duration expressed in milliseconds (e.g. 50), the GetLastFrame... functions wait for the next frame, eventually return it, or fail if the timeout specified expires.
- for live sources the maximum duration is not critical, it is possible to set e.g. 1000 milliseconds
- during playback, when paused, we recommend to set a maximum value of 1.5 times the average time between 2 frames, to be sure to catch the next frame but avoid a potential deadlock when the clip is paused and/or when seeking. E.g. at 30 fps the average time between 2 frames is 33ms, so GetLastFrameWaitTimeoutMs = 50ms should work.