The clone() method of the MediaStreamTrack interface creates a duplicate of the MediaStreamTrack.
clone()
MediaStreamTrack
MDN Reference