android/src/main/java/com/oney/WebRTCModule/GetUserMediaImpl.java
/**
     * Includes default constraints set for the audio media type.
     * @param audioConstraints <tt>MediaConstraints</tt> instance to be filled
     * with the default constraints for audio media type.
     */
Includes default constraints set for the audio media type.
@param audioConstraints MediaConstraints instance to be filled
with the default constraints for audio media type.
Includes default constraints set for the audio media type . @param audioConstraints MediaConstraints instance to be filled with the default constraints for audio media type .
private void addDefaultAudioConstraints(MediaConstraints audioConstraints) {
        audioConstraints.optional.add(
            new MediaConstraints.KeyValuePair("googNoiseSuppression", "true"));
        audioConstraints.optional.add(
            new MediaConstraints.KeyValuePair("googEchoCancellation", "true"));
        audioConstraints.optional.add(
            new MediaConstraints.KeyValuePair("echoCancellation", "true"));
        audioConstraints.optional.add(
            new MediaConstraints.KeyValuePair("googEchoCancellation2", "true"));
        audioConstraints.optional.add(
            new MediaConstraints.KeyValuePair(
                    "googDAEchoCancellation", "true"));
    }
private void addDefaultAudioConstraints ( MediaConstraints audioConstraints ) { audioConstraints . optional . add ( new MediaConstraints . KeyValuePair ( "googNoiseSuppression" , "true" ) ) ; audioConstraints . optional . add ( new MediaConstraints . KeyValuePair ( "googEchoCancellation" , "true" ) ) ; audioConstraints . optional . add ( new MediaConstraints . KeyValuePair ( "echoCancellation" , "true" ) ) ; audioConstraints . optional . add ( new MediaConstraints . KeyValuePair ( "googEchoCancellation2" , "true" ) ) ; audioConstraints . optional . add ( new MediaConstraints . KeyValuePair ( "googDAEchoCancellation" , "true" ) ) ; }
Includes default constraints set for the audio media type.
Includes default constraints set for the audio media type .