RTCOutboundRtpStreamStats: totalEncodedBytesTarget property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The totalEncodedBytesTarget property of the RTCOutboundRtpStreamStats dictionary represents the sum of the target frame sizes for all of the frames encoded so far.

The codec has a target maximum size for each frame that it is asked to compress, in bytes. This property indicates the cumulative total of the target sizes for each frame at the current time. This will probably differ from the total of the actual frame sizes. You can compare to bytesSent in order to estimate how closely the codec is matching its target.

The value increases every time framesEncoded goes up.

Note: The property is undefined for audio streams.

Value

The sum of the target frame sizes in bytes, represented as a positive integer.

Specifications

Specification
Identifiers for WebRTC's Statistics API
# dom-rtcoutboundrtpstreamstats-totalencodedbytestarget

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
totalEncodedBytesTarget in 'outbound-rtp' stats
Experimental
Chrome – No support
Chrome 80 – 83 (Release date: 2020-02-04)
footnote Removed in 84 and later
Edge – No support
Edge 80 – 83 (Release date: 2020-02-07)
footnote Removed in 84 and later
Firefox – Full support
Firefox 102 (Release date: 2022-06-28)
footnote Full support
Opera – No support
Opera 67 – 69 (Release date: 2020-03-03)
footnote Removed in 70 and later
Safari – No support
Safari
footnote No support
Chrome Android – No support
Chrome Android 80 – 83 (Release date: 2020-02-04)
footnote Removed in 84 and later
Firefox for Android – Full support
Firefox for Android 102 (Release date: 2022-06-28)
footnote Full support
Opera Android – No support
Opera Android 57 – 59 (Release date: 2020-03-30)
footnote Removed in 60 and later
Safari on iOS – No support
Safari on iOS
footnote No support
Samsung Internet – No support
Samsung Internet 13 – 13.2 (Release date: 2020-12-02)
footnote Removed in 14 and later
WebView Android – No support
WebView Android 80 – 83 (Release date: 2020-02-04)
footnote Removed in 84 and later
WebView on iOS – No support
WebView on iOS
footnote No support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Experimental. Expect behavior to change in the future.