Skip to content

IDeviceStreamProbe

Interface in Oadm.Sdk.Devices · Oadm.Sdk.dll

An open measuring stream; dispose to end it (RTSP TEARDOWN).

public interface IDeviceStreamProbe : IAsyncDisposable

Extends IAsyncDisposable

string Codec { get; }

The codec the camera streams (“h265” or “h264”).

Task Completion { get; }

Completes when the stream ends: normally after IAsyncDisposable.DisposeAsync, faulted with DeviceStreamException when the device closes or the connection breaks.

int Fps { get; }

The asked frame rate (frames per second the camera should send).

int Height { get; }

The streamed height.

DateTimeOffset StartedUtc { get; }

When the first video packet arrived.

StreamProbeTransport Transport { get; }

UDP or TCP, as negotiated.

bool UdpBlocked { get; }

Default implementation

True when the probe asked for UDP, the camera agreed, but no video arrived over UDP in the first seconds (a firewall or NAT on the way drops it), so it streams over TCP instead. False otherwise, also when the camera refused UDP or the device is at a site. SDK 0.6.0.

int Width { get; }

The streamed width.

StreamProbeCounters Read()

The counters since the start; cheap, thread-safe, call it once per second and take the difference.