setTransport 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.]

Set the transport (either an RTCDtlsTransport or an RTCSrtpSdesTransport). Only RTP/RTCP multiplexing is supported if transport is an RTCDtlsTransport. If setTransport() is called and transport.state or rtcpTransport.state is "closed", throw an InvalidParameters exception.


var retval = RTCRtpReceiver.setTransport(transport);


  • transport
    Type: RTCTransport

    The associated RTCDtlsTransportor RTCSrtpSdesTransport.

Return value

This method does not return a value.

Standards information

See also