Table of Contents

Class RTCVideoSourceStats

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The RTCVideoSourceStats dictionary of the WebRTC API provides statistics information about a video track (MediaStreamTrack) that is attached to one or more senders (RTCRtpSender).

[ToObject]
public class RTCVideoSourceStats : RTCMediaSourceStats
Inheritance
RTCVideoSourceStats
Inherited Members

Remarks

These statistics can be obtained by iterating the RTCStatsReport returned by GetStats() or GetStats(MediaStreamTrack?) until you find a report with the type of media-source and a kind of video.

NOTE

For video information about remotely sourced tracks (that are being received), see RTCInboundRtpStreamStats.

See also on MDN

Constructors

RTCVideoSourceStats()

public RTCVideoSourceStats()

Fields

Frames

The frames property of the RTCVideoSourceStats dictionary indicates the total number of frames originating from this video source over its lifetime.

[Value("frames")]
public ulong Frames

Field Value

ulong

A number indicating the total number of frames originating from this source.

Remarks

FramesPerSecond

The framesPerSecond property of the RTCVideoSourceStats dictionary indicates the number of frames originating from this video source in the last second.

[Value("framesPerSecond")]
public Number FramesPerSecond

Field Value

Number

A number indicating the frames originating from this source in the last second.

Remarks

The property is not defined on the stats object for the first second of its lifetime.

See also on MDN

Height

The height property of the RTCVideoSourceStats dictionary indicates the height, in pixels, of the last frame originating from this source.

[Value("height")]
public ulong Height

Field Value

ulong

A positive number indicating the height, in pixels.

Remarks

This property is not defined on the stats object until after the first frame has been produced.

See also on MDN

Width

The width property of the RTCVideoSourceStats dictionary indicates the width, in pixels, of the last frame originating from this source.

[Value("width")]
public ulong Width

Field Value

ulong

A positive number indicating the width, in pixels.

Remarks

This property is not defined on the stats object until after the first frame has been produced.

See also on MDN