Skip to content

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);

Specifies how long, in milliseconds, the GetLastFrame... functions wait for the next frame. By default, the GetLastFrame... functions return the current video frame. When GetLastFrameWaitTimeoutMs is set to a duration (e.g. 50), they wait for the next frame and return it, or fail if this timeout expires.

  • For live sources, the maximum duration is not critical: e.g. 1000 milliseconds can be set.

  • During playback, when paused, a maximum value of 1.5 times the average time between 2 frames is recommended, to be sure to catch the next frame while avoiding a potential deadlock when the clip is paused and/or when seeking. E.g. at 30 fps the average time between 2 frames is 33 ms, so GetLastFrameWaitTimeoutMs = 50 ms should work.