We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

MediaStream()

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The MediaStream() constructor returns a newly-created MediaStream, either empty or containing tracks, provided as an argument.

Syntax

stream = new MediaStream();
stream = new MediaStream(stream);
stream = new MediaStream(tracks[]);

Parameters

stream
Another MediaStream containing tracks to add.
tracks
An Array of MediaStreamTracks to add.

Return value

A newly-created MediaStream object, either empty, or containing the tracks provided, if any.

Specifications

Specification Status Comment
Media Capture and Streams
The definition of 'MediaStream' in that specification.
Candidate Recommendation  

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support55 Yes44 No42 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support5555 Yes42 ? No6.0

See also

Document Tags and Contributors

Contributors to this page: fscholz, jpmedley, bunnybooboo, Jib
Last updated by: fscholz,