RTCRtpReceiver.getParameters()
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 |
---|
WebRTC 1.0: Real-Time Communication Between Browsers (WebRTC 1.0) # dom-rtcrtpreceiver-getparameters |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
getParameters |
59 |
≤79 |
No |
No |
46 |
11 |
59 |
59 |
No |
43 |
11 |
7.0 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getParameters