# RTSP cameras

Video Capture SDK .Net VideoCaptureCoreX VideoCaptureCore

# Common RTSP camera source

Check the IP cameras article for generic camera source that support many protocols including RTSP.

// Create RTSP source settings object
var rtsp = await RTSPSourceSettings.CreateAsync(new Uri("url"), "login", "password", true /*capture audio?*/);

// Set source to the VideoCaptureCoreX object
VideoCapture1.Video_Source = rtsp;

# Low-latency RTSP source

SDK has a special mode for low-latency RTSP streaming. Usually, the latency is less than 250 ms.

// Create the source settings object.
var settings = new IPCameraSourceSettings();

// Configure IP address, username, password, etc.
// ...

// Set RTSP LowLatency mode.
settings.Type = IPSourceEngine.RTSP_LowLatency;

// Set UDP or TCP mode.
settings.RTSP_LowLatency_UseUDP = false; // true to use UDP, false to use TCP

// Set source to the VideoCaptureCore object.
VideoCapture1.IP_Camera_Source = settings;

Use the normal RTSP source with custom a latency parameter.

# Sample applications that use the RTSP source