setParameters method

JSPromise<JSAny?> setParameters(
  1. RTCRtpSendParameters parameters, [
  2. RTCSetParameterOptions setParameterOptions
])

The setParameters() method of the RTCRtpSender interface applies changes the configuration of sender's RTCRtpSender.track, which is the MediaStreamTrack for which the RTCRtpSender is responsible.

In other words, setParameters() updates the configuration of the transmission as well as the encoding configuration for a specific outgoing media track on the WebRTC connection.

Implementation

external JSPromise<JSAny?> setParameters(
  RTCRtpSendParameters parameters, [
  RTCSetParameterOptions setParameterOptions,
]);