Back to Content

RTCInboundRtpStreamStats: frameWidth property

files/en-us/web/api/rtcinboundrtpstreamstats/framewidth/index.md

latest533 B
Original Source

{{APIRef("WebRTC")}}

The frameWidth property of the {{domxref("RTCInboundRtpStreamStats")}} dictionary indicates the width of the last decoded frame, in pixels.

Note that the resolution of the encoded frame may be lower than that of the media source, which is provided in {{domxref("RTCVideoSourceStats.width")}}.

[!NOTE] The value is undefined for audio streams, or before the first frame is encoded.

Value

A positive integer, in pixels.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}