The MediaStream()
constructor returns a newly-created MediaStream
, which serves as a collection of media tracks, each represented by a MediaStreamTrack
object.
If any parameters are given, the specified tracks are added to the new stream. Otherwise, the stream has no tracks.