MediaTrackConstraints: noiseSuppression property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
TheMediaTrackConstraints dictionary'snoiseSuppression property is aConstrainBoolean describing the requested or mandatory constraints placed upon the value of thenoiseSuppression constrainable property.
If needed, you can determine whether or not this constraint is supported by checkingthe value ofMediaTrackSupportedConstraints.noiseSuppression as returnedby a call toMediaDevices.getSupportedConstraints(). However, typicallythis is unnecessary since browsers will ignore any constraints they're unfamiliar with.
Noise suppression is typically provided by microphones, although it can be provided byother input sources as well.
In this article
Value
If this value is a simpletrue orfalse, the user agent willattempt to obtain media with noise suppression enabled or disabled as specified, ifpossible, but will not fail if this can't be done. If, instead, the value is given as anobject with anexact field, that field's Boolean value indicates a requiredsetting for the noise suppression feature; if it can't be met, then the request willresult in an error.
Examples
See theConstraint exerciser example.
Specifications
| Specification |
|---|
| Media Capture and Streams> # dom-mediatrackconstraintset-noisesuppression> |