Web/API/RTCRtpReceiver/getParameters

From Get docs

The getParameters() method of the RTCRtpReceiver interface returns an RTCRtpReceiveParameters object describing the current configuration for the encoding and transmission of media on the receiver's track.

Syntax

let rtpReceiveParameters = rtpReceiver.getParameters();

Parameters

None.

Return value

An RTCRtpReceiveParameters object indicating the current configuration of the receiver.

Examples

This example obtains the canonical name (CNAME) being used for RTCP on an  RTCRtpReceiver.

function getRtcpCNAME(receiver) {
  let parameters = receiver.getParameters();

  return parameters.rtcp.cname;
}

Specifications

Specification Status Comment
WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCRtpReceiver.getParameters()' in that specification. Candidate Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
getParameters Chrome

Full support 59

Edge

Full support ≤79

Firefox

Full support Yes

IE

No support No

Opera

Full support 46

Safari

Full support Yes

WebView Android

Full support 59

Chrome Android

Full support 59

Firefox Android

Full support Yes

Opera Android

Full support 43

Safari iOS

Full support Yes

Samsung Internet Android

Full support 7.0

Legend

Full support  
Full support
No support  
No support