addTransceiver method

RTCRtpTransceiver addTransceiver(
  1. JSAny trackOrKind, [
  2. RTCRtpTransceiverInit init
])

The addTransceiver() method of the RTCPeerConnection interface creates a new RTCRtpTransceiver and adds it to the set of transceivers associated with the RTCPeerConnection. Each transceiver represents a bidirectional stream, with both an RTCRtpSender and an RTCRtpReceiver associated with it.

Implementation

external RTCRtpTransceiver addTransceiver(
  JSAny trackOrKind, [
  RTCRtpTransceiverInit init,
]);