ClientConfig
Configuration for a new IClient instance.
Props
eglBase
public EglBase
eglBaseExternally created WebRTC EglBase.
Returns
type:
EglBase
enableCameraMirroring
public boolean
enableCameraMirroringWhether to enable front facing camera mirroring. The default value is true.
Returns
type:
boolean
enableDebugLogging
public boolean
enableDebugLoggingWhether to enable debug logging. The default value is false.
Returns
type:
boolean
enableLogcatLogging
public boolean
enableLogcatLoggingWhether to enable log output to logcat. The default value is true.
Returns
type:
boolean
enableVideo
public boolean
enableVideoWhether to enable video functionality. The default value is true.
Returns
type:
boolean
enableVideoAdaptation
public boolean
enableVideoAdaptationWhether to enable video adaptation for the CPU usage and the current bandwidth.
The default value is true.
Returns
type:
boolean
forceRelayTraffic
public boolean
forceRelayTrafficWhether to force traffic through TURN servers.
The default value is false.
Returns
type:
boolean
packageName
public String
packageNameApplication package name that is generally the applicationId in your app-level build.gradle file.
You need to set this only if you are going to send push notifications across several Android apps via a single Voximplant application.
Returns
type:
String
preferredVideoCodec
public preferredVideoCodecPreferred video codec for all video calls, the default value is VideoCodec.VP8. Can be overridden for a particular call via CallSettings.preferredVideoCodec
Returns
type:
requestAudioFocusMode
public requestAudioFocusModeSpecifies when the audio focus request is performed: when a call is started or established.
The default value is RequestAudioFocusMode.REQUEST_ON_CALL_START.
In case of RequestAudioFocusMode.REQUEST_ON_CALL_CONNECTED, SDK requests audio focus and sets audio mode to MODE_IN_COMMUNICATION, when a call is established, i.e. ICallListener.onCallConnected(ICall, Map) is triggered.
In case of RequestAudioFocusMode.REQUEST_ON_CALL_START, SDK requests audio focus when the call is started, i.e. IClient.call(String, CallSettings) or ICall.answer(CallSettings) are called.
If the application plays some audio, it may result in audio interruptions. To avoid this behaviour, this option should be set to RequestAudioFocusMode.REQUEST_ON_CALL_CONNECTED and application's audio should be stopped/paused on ICallListener.onCallAudioStarted(ICall).
Returns
statsCollectionInterval
public int
statsCollectionIntervalCall statistics collection interval in milliseconds.
Default value - 5000.
Interval value should be multiple of 500, otherwise the provided value is rounded to a less value that is multiple of 500.
Returns
type:
int
useHmsForPushNotifications
public boolean
useHmsForPushNotificationsWhether Huawei Mobile Services are used on a Huawei/Honor device.
The default value is false.
If set to true, a push notification token registered via IClient.registerForPushNotifications(String, IPushTokenCompletionHandler) is used to send a push notification with a push certificate of the Huawei provider from the Voximplant Control Panel.
If set to false, a push notification token registered via IClient.registerForPushNotifications(String, IPushTokenCompletionHandler) is used to send a push notification with a certificate of the Google provider from the Voximplant Control Panel.
Returns
type:
boolean