RTCOutboundRtpStreamStats: scalabilityMode property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
ThescalabilityMode property of theRTCOutboundRtpStreamStats dictionary represents the scalability mode for the RTP stream, if one has been configured.If not configured, the property is undefined.
The mode is used inScalable Video Coding (SVC) to define how define how a video stream may be encoded to allow for adaptation to different network conditions and receiver capabilities.Different codecs allow for various kinds of scalability, such as providing different resolution, different frame rates, or different quality levels for a particular video.
The mode may be configured, for example, by specifying the scalability mode as a parameter option inVideoEncoder.configure(),RTCRtpSender.setParameters(), orRTCPeerConnection.addTransceiver().
Note:The property is undefined for audio streams.
In this article
Value
A string indicating the configured scalability mode, such as "L1T1".If no mode has been configured, the property is undefined.
The set of allowed modes are defined inScalable Video Coding (SVC) Extension for WebRTC (w3c.github.io/webrtc-svc).
Specifications
| Specification |
|---|
| Identifiers for WebRTC's Statistics API> # dom-rtcoutboundrtpstreamstats-scalabilitymode> |