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