Share via


send method

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

Media to be sent is controlled by parameters. If send() is called with invalid parameters, throw an InvalidParameters exception. If transport is an RTCDtlsTransport and send(parameters) is called with parameters.rtcp.mux set to false, throw an InvalidParameters exception. The send() method does not update parameters based on what is currently being sent, so that the value of parameters remains that last passed to the send() method. The RTCRtpSender object starts sending when send() is called for the first time, and changes the sending parameters when send() is called again. The RTCRtpSender object stops sending when stop() is called.

Syntax

var retval = RTCRtpSender.send(parameters);

Parameters

Return value

This method does not return a value.

Standards information

See also

RTCRtpSender