Skip to content

IsURLVideoStreamAvailable

function

Delphi
function IsURLVideoStreamAvailable (TimeOut_Ms: LongInt): TTriState;
C++Builder
TTriState __fastcall IsURLVideoStreamAvailable(System::LongInt TimeOut_Ms);
C#
public TTriState IsURLVideoStreamAvailable(int TimeOut_Ms);
VB.NET
Public Function IsURLVideoStreamAvailable(TimeOut_Ms As Integer) As TTriState
C++/Qt
TTriState IsURLVideoStreamAvailable (int TimeOut_Ms);

Used to determine if the URL specified in IPCameraURL or VideoSource_FileOrURL really outputs video samples, without starting the GUI.

This function ca be invoked from a background thread.

The function waits for the first video sample to be received, until the Timeout_Ms duration (expressed in milliseconds) expires.

Return values:

ts_Undefined: the connection failed

ts_False: the connection succeeded but the source does not output video samples

ts_True: the connection succeeded and at least one video sample has been received