RTCAudioSourceStats: type property
Baseline 2023Newly available
Since May 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
The type
property of the RTCAudioSourceStats
dictionary is a string with value media-source
.
The type of media-source
identifies the type of statistics as either RTCAudioSourceStats
or RTCVideoSourceStats
when iterating the RTCStatsReport
returned by RTCRtpSender.getStats()
or RTCPeerConnection.getStats()
.
The type of stats can further be differentiated using the kind
, which will be audio
for RTCAudioSourceStats
.
Value
A string with the value media-source
.
Specifications
Specification |
---|
Identifiers for WebRTC's Statistics API # dom-rtcstats-type |