RTCAudioSourceStats: type property
Baseline2023Newly available
Since May 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
Thetype
property of theRTCAudioSourceStats
dictionary is a string with valuemedia-source
.
The type ofmedia-source
identifies the type of statistics as eitherRTCAudioSourceStats
orRTCVideoSourceStats
when iterating theRTCStatsReport
returned byRTCRtpSender.getStats()
orRTCPeerConnection.getStats()
.The type of stats can further be differentiated using thekind
, which will beaudio
forRTCAudioSourceStats
.
Value
A string with the valuemedia-source
.
Specifications
Specification |
---|
Identifiers for WebRTC's Statistics API # dom-rtcstats-type |