RTCOutboundRtpStreamStats: mediaSourceId property

The mediaSourceId property of the RTCOutboundRtpStreamStats dictionary represents the ID of the statistics object of the track currently attached to the sender of this stream.

This can then be used to obtain the corresponding RTCVideoSourceStats or RTCAudioSourceStats.

Value

A string containing the ID of a media source statistics object.

Specifications

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

Browser compatibility

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
mediaSourceId in 'outbound-rtp' stats