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
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
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
RTCRtpReceiver.getParameters() by Mozilla Contributors is licensed under CC-BY-SA 2.5.