Skip to content

StreamProbeRequest

Record in Oadm.Sdk.Devices · Oadm.Sdk.dll

What to stream.

public sealed record StreamProbeRequest(int Camera, int Width = 0, int Height = 0, int Fps = 0, string? Codec = null, bool PreferUdp = true)

Parameters

  • Camera: The RTSP camera number (StreamProbeSource.Camera).
  • Width: Requested width; 0 = the largest of the source.
  • Height: Requested height; 0 = the largest of the source.
  • Fps: Requested frame rate; 0 = the maximum of the source.
  • Codec: “h265” or “h264”; null = the best the source offers.
  • PreferUdp: RTP over UDP where possible (real packet loss); false = always TCP.
int Camera { get; init; }

The RTSP camera number (StreamProbeSource.Camera).

string? Codec { get; init; }

“h265” or “h264”; null = the best the source offers.

int Fps { get; init; }

Requested frame rate; 0 = the maximum of the source.

int Height { get; init; }

Requested height; 0 = the largest of the source.

bool PreferUdp { get; init; }

RTP over UDP where possible (real packet loss); false = always TCP.

int Width { get; init; }

Requested width; 0 = the largest of the source.