MediaStream() constructor returns a newly-created
MediaStream, which serves as a collection of media tracks, each represented by a
If any parameters are given, the specified tracks are added to the new stream. Otherwise, the stream has no tracks.
new MediaStream() new MediaStream(stream) new MediaStream(tracks)
MediaStreamobject whose tracks are added to the newly-created stream automatically. The tracks are not removed from the original stream, so they're shared by the two streams.
MediaStreamTrackobjects, one for each track to add to the stream.
MediaStream object, either empty, or containing the
tracks provided, if any.
|Media Capture and Streams |
BCD tables only load in the browser