Package com.mux.sdk.webrtc.spaces
Class Spaces.SdkOptions.Builder
- java.lang.Object
-
- com.mux.sdk.webrtc.spaces.Spaces.SdkOptions.Builder
-
- Enclosing class:
- Spaces.SdkOptions
public static class Spaces.SdkOptions.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Spaces.SdkOptions
build()
Spaces.SdkOptions.Builder
setAttemptDisableLegacyAudioProcessing(boolean attemptDisableLegacyAudioProcessing)
Attempts to disable some of the audio processing modes generally used in webrtc Setting to true may help reduce, but not eliminate, unwanted sorts of audio processingSpaces.SdkOptions.Builder
setAudioAttributes(android.media.AudioAttributes audioAttributes)
Sets AudioAttributes for output streams Useful if you want to override the default act as a voice call behaviour.Spaces.SdkOptions.Builder
setAudioSource(int audioSource)
Set the type of audio source for input from MediaRecorder.AudioSource Defaults to CAMCORDERvoid
setDefaultToSpeakerphone(boolean defaultToSpeakerphone)
Sets if the SDK will call AudioManager.setSpeakerPhoneOn(true) on startup.Spaces.SdkOptions.Builder
setUseHardwareAcousticEchoCanceler(boolean useHardwareAcousticEchoCanceler)
Sets if we will try to use the hardware acoustic echo canceler, if any Defaults to trueSpaces.SdkOptions.Builder
setUseHardwareNoiseSuppressor(boolean useHardwareNoiseSuppressor)
Sets if we will try to use the hardware noise suppressor, if any Defaults to true
-
-
-
Method Detail
-
setAudioSource
public Spaces.SdkOptions.Builder setAudioSource(int audioSource)
Set the type of audio source for input from MediaRecorder.AudioSource Defaults to CAMCORDER- Parameters:
audioSource
-- Returns:
-
setUseHardwareAcousticEchoCanceler
public Spaces.SdkOptions.Builder setUseHardwareAcousticEchoCanceler(boolean useHardwareAcousticEchoCanceler)
Sets if we will try to use the hardware acoustic echo canceler, if any Defaults to true- Parameters:
useHardwareAcousticEchoCanceler
-- Returns:
-
setUseHardwareNoiseSuppressor
public Spaces.SdkOptions.Builder setUseHardwareNoiseSuppressor(boolean useHardwareNoiseSuppressor)
Sets if we will try to use the hardware noise suppressor, if any Defaults to true- Parameters:
useHardwareNoiseSuppressor
-- Returns:
-
setDefaultToSpeakerphone
public void setDefaultToSpeakerphone(boolean defaultToSpeakerphone)
Sets if the SDK will call AudioManager.setSpeakerPhoneOn(true) on startup. The default is true, and this is generally correct behaviour for everything which isn't trying to replace a handset earpiece phone call experience. If you want to do that you will need to set this to false and handle the switching of audio devices via AudioManager in your application.- Parameters:
defaultToSpeakerphone
-
-
setAudioAttributes
public Spaces.SdkOptions.Builder setAudioAttributes(android.media.AudioAttributes audioAttributes)
Sets AudioAttributes for output streams Useful if you want to override the default act as a voice call behaviour.- Parameters:
audioAttributes
-- Returns:
-
setAttemptDisableLegacyAudioProcessing
public Spaces.SdkOptions.Builder setAttemptDisableLegacyAudioProcessing(boolean attemptDisableLegacyAudioProcessing)
Attempts to disable some of the audio processing modes generally used in webrtc Setting to true may help reduce, but not eliminate, unwanted sorts of audio processing- Parameters:
attemptDisableLegacyAudioProcessing
-- Returns:
-
build
public Spaces.SdkOptions build()
-
-