addTrack method
The addTrack()
method of the RTCPeerConnection interface adds a
new media track to the set of tracks which will be transmitted to the
other peer.
Note: Adding a track to a connection triggers renegotiation by firing a
RTCPeerConnection.negotiationneeded_event
event. See Starting negotiation for details.
Implementation
external RTCRtpSender addTrack(
MediaStreamTrack track,
MediaStream streams,
);