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