IDeviceStreamProbe
Interface in Oadm.Sdk.Devices · Oadm.Sdk.dll
An open measuring stream; dispose to end it (RTSP TEARDOWN).
public interface IDeviceStreamProbe : IAsyncDisposableExtends IAsyncDisposable
Properties
Section titled “Properties”string Codec { get; }The codec the camera streams (“h265” or “h264”).
Completion
Section titled “Completion”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).
Height
Section titled “Height”int Height { get; }The streamed height.
StartedUtc
Section titled “StartedUtc”DateTimeOffset StartedUtc { get; }When the first video packet arrived.
Transport
Section titled “Transport”StreamProbeTransport Transport { get; }UDP or TCP, as negotiated.
UdpBlocked
Section titled “UdpBlocked”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.
Methods
Section titled “Methods”StreamProbeCounters Read()The counters since the start; cheap, thread-safe, call it once per second and take the difference.