Results 1 - 20 of 22

active

The active read-only property of the MediaStream interface returns a Boolean value that will return to be  true if the MediaStream is active, else false.
API Media Streams API MediaStream Property Reference

MediaStreamTrackEvent

The MediaStreamTrackEvent interface represents events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur.
API Interface Media Streams API MediaStreamTrackEvent Reference

MediaStreamTrackEvent()

The MediaStreamTrackEvent() constructor returns a newly created MediaStreamTrackEvent object, which represents an event announcing that a MediaStreamTrack has been added to or removed from a MediaStream.
API Constructor Media Streams API MediaStreamTrackEvent Reference

Media Capture and Streams API (Media Streams)

The Media Capture and Streams API, often called the Media Stream API or the Stream API,  is an API related to WebRTC which supports streams of audio or video data, the methods for working with them, the constraints associated with the type of data, the success and error callbacks when using the data asynchronously, and the events that are fired during the process.
Advanced API Audio audio Guide Media Capture and Streams API Media Streams API NeedsContent video Video

MediaStreamTrack.applyConstraints()

The applyConstraints() method of the MediaStreamTrack interface applies a set of constraints to the track; these constraints let the Web site or app establish ideal values and acceptable ranges of values for the constrainable properties of the track, such as frame rate, dimensions, echo cancelation, and so forth.
API applyConstraints Constraints Media Capture and Streams API Media Streams API MediaStreamTrack Method

MediaStreamTrack.clone()

The clone() method of the MediaStreamTrack interface creates a duplicate of the MediaStreamTrack. This new MediaStreamTrack object is identical except for its unique id.
API clone Media Capture and Streams Media Streams API MediaStreamTrack Method Reference

MediaStreamTrack.getCapabilities()

The getCapabilities() method of the MediaStreamTrack interface returns a MediaTrackCapabilities object which specifies the values or range of values which each constrianable property, based upon the platform and user agent.
API getCapabilities Media Capture and Streams API Media Streams API MediaStreamTrack Method Reference

MediaStreamTrack.getConstraints()

The getConstraints() method of the MediaStreamTrack interface returns a MediaTrackConstraints object containing the set of constraints most recently established for the track using a prior call to applyConstraints(). These constraints indicate values and ranges of values that the Web site or application has specified are acceptable for the included constrainable properties.
API getConstraints Media Capture and Streams Media Streams API MediaStreamTrack Method Reference

MediaTrackConstraints

The MediaTrackConstraints dictionary is used to describe a set of capabilities and the value or values each can take on. A constraints dictionary is passed into applyConstraints() to allow a script to establish a set of ideal values and/or preferred ranges of values for the track, and the most recently-requested set of custom constraints can be retrieved by calling getConstraints().
API Dictionary Interface Media Capture and Streams API Media Streams API MediaTrackConstraints Reference

MediaTrackSupportedConstraints

The MediaTrackSupportedConstraints dictionary establishes the list of constrainable properties recognized by the user agent or browser in its implementation of the MediaStreamTrack object. An object conforming to MediaTrackSupportedConstraints is returned by MediaDevices.getSupportedConstraints().
API Constraints Dictionary Interface Media Capture and Streams API Media Streams API MediaTrackSupportedConstraints Reference

MediaStream

The MediaStream interface represents a stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack.
API Interface Media Streams API MediaStream Reference WebRTC

MediaStream.addTrack()

The MediaStream.addTrack() method adds a new track to the stream. The track is specified as a parameter of type MediaStreamTrack.
addTrack API Media Streams API Method NeedsExample Reference

MediaStream.onaddtrack

The MediaStream.onaddtrack property is an EventHandler which specifies a function to be called when the addtrack event occurs on a MediaStream instance. This happens when a new track of any kind is added to the media stream. This event is fired when the browser adds a track to the stream (such as when a RTCPeerConnection is renegotiated or a stream being captured using HTMLMediaElement.captureStream() gets a new set of tracks because the media element being captured loaded a new source.
API Event Handler Media Streams API MediaStream Property Reference

MediaStream.onremovetrack

The MediaStream.onremovetrack property is an EventHandler which specifies a function to be called when the removetrack event occurs on a MediaStream instance. This happens when a track of any kind is removed from the media stream. This event is fired when the browser removes a track from the stream (such as when a RTCPeerConnection is renegotiated or a stream being captured using HTMLMediaElement.captureStream() gets a new set of tracks because the media element being captured loaded a new source.
API Event Handler Media Streams API MediaStream onremovetrack Property Reference

MediaStreamTrack.getSettings()

The getSettings() method of the MediaStreamTrack interface returns a MediaTrackSettings object containing the current values of each of the constrainable properties for the current MediaStreamTrack. See "Capabilities and constraints" in Media Capture and Streams API (Media Streams) for details on how to work with constrainable properties.
API Constraints getSettings Media Capture and Streams MediaStreamTrack Method Reference

muted

The muted read-only property of the MediaStreamTrack interface returns a Boolean value indicating whether the track is muted.
API Media Capture and Streams MediaStreamTrack muted Property Reference

MediaStreamTrack.onended

The MediaStreamTrack.onended event handler is used to specify a function which serves as an EventHandler to be called when the ended event occurs on the track. This event occurs when the track will no longer provide data to the stream for any reason, including the end of the media input being reached, the user revoking needed permissions, the source device being removed, or the remote peer ending a connection.
API Event Handler Media Streams API MediaStreamTrack onended Property Reference

MediaStreamTrack

The MediaStreamTrack interface represents a single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well.
API audio Audio Experimental Interface Media Media Capture and Streams API Media Streams API MediaStreamTrack Reference video Video WebRTC