A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/MediaStream/MediaStream below:

MediaStream: MediaStream() constructor - Web APIs

MediaStream: MediaStream() constructor

Baseline Widely available

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.

Syntax
new MediaStream()
new MediaStream(stream)
new MediaStream(tracks)
Parameters
stream Optional

A different MediaStream object 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.

tracks Optional

An Array of MediaStreamTrack objects, one for each track to add to the stream.

Return value

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

Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4