The addTrack() method of the MediaStream interface adds a new track to the stream.
addTrack()
MDN Reference