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.
newStream = new MediaStream(); newStream = new MediaStream(stream); newStream = new MediaStream(tracks);
MediaStream object, either empty, or containing the
tracks provided, if any.
|Media Capture and Streams
The definition of 'MediaStream' in that specification.
BCD tables only load in the browser