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.

applyConstraints

Summary

Replaces all existing constraints with the provided constraints, if existing constraints exist. Otherwise, it applies the newly provided constraints to the track.

Method of apis/media_capture_and_streams/MediaStreamTrackapis/media_capture_and_streams/MediaStreamTrack

Syntax

 track.applyConstraints(constraints);

Parameters

constraints

Data-type
MediaTrackConstraints

(Optional)

A new constraint structure to apply to this track.

Return Value

No return value