This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

MediaStream

Summary

The MediaStream interface of the WebRTC API describes a stream of audio or video data. A MediaStream object represents a linear, potentially infinite timeline. It is not preloadable, nor is it seekable.

Properties

audioTracks
The MediaStreamTrackList object representing the audio tracks.
ended
True if the ended event has fired on the MediaStream object.
label
A globally unique identifier (GUID) of 36 characters that describes the media stream.
onended
Handles the ended event when fired on the MediaStream object.
videoTracks
The MediaStreamTrackList object representing the video tracks.

Methods

No methods.

Events

ended
All tracks of the MediaStream object have ended; the MediaStream is said to be finished.

Examples

navigator.getUserMedia =
    navigator.getUserMedia

View live example

Related specifications

WebRTC 1.0: Real-time Communication Between Browsers
Working Draft
Media Capture and Streams
Working Draft