Methods

This section contains the Media Capture and Streams methods reference documentation.

In this section

TopicDescription

addTrack

Adds the MediaStreamTrack to this MediaStream

applyConstraints

Applies constraints to the MediaStreamTrack object.

clone

Clones the MediaStream and all of its tracks and generates a new id for the cloned object.

enumerateDevices

Returns information about available input and output media devices.

getAudioTracks

Returns a sequence of MediaStreamTrack objects in the stream's track set whose kind is set to "audio".

getCapabilities

Returns the dictionary of the names of the containable properties that the object supports.

getConstraints

Returns the constraints that were set by the applyConstraints method.

getSettings

Returns the settings of a MediaStreamTrack object.

getSupportedConstraints

Returns a dictionary of supported containable properties.

getTrackById

Returns a MediaStreamTrack object from the stream's track set.

getTracks

Returns a sequence of MediaStreamTrack objects in the stream's track set, regardless of kind.

getUserMedia

Prompts the user for permission, then returns a MediaStream object that represents audio or video input.

getVideoTracks

Returns a sequence of MediaStreamTrack objects in the stream's track set whose kind is set to "video".

removeTrack

Removes the MediaStreamTrack object from this MediaStream.

stop

Stops the capture device.

 

 

 

Show: