addTrack

external fun addTrack(track: MediaStreamTrack)(source)

The addTrack() method of the MediaStream interface adds a new track to the stream. The track is specified as a parameter of type MediaStreamTrack.

MDN Reference