public class RtcEngineConfig
extends java.lang.Object
RtcEngine
instance.Modifier and Type | Class and Description |
---|---|
static class |
RtcEngineConfig.AreaCode
Regions for connection
|
static class |
RtcEngineConfig.LogConfig |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
mAppId
The App ID issued to you by Agora.
|
int |
mAreaCode
The region for connection.
|
int |
mAudioScenario
The audio application scenario.
|
int |
mChannelProfile
The channel profile of the Agora
RtcEngine . |
Context |
mContext
The context of Android Activity.
|
boolean |
mDomainLimit
Determines whether to enable domain limit
-true: only connect to servers which already parsed by DNS
-false: (Default) connect to servers with no limit
|
IAgoraEventHandler |
mEventHandler
IRtcEngineEventHandler is an abstract class providing default
implementation. |
java.util.List<java.lang.String> |
mExtensionList
Determines whether to enable audio device
-true: (Default) enable audio device
-false, disable audio device.
|
IMediaExtensionObserver |
mExtensionObserver |
java.lang.String |
mLicense
The license used for verification when connecting channel.
|
RtcEngineConfig.LogConfig |
mLogConfig |
java.lang.String |
mNativeLibPath
native c++ dynamic library path.
|
java.lang.Integer |
mThreadPriority
Thread priority type.
|
Constructor and Description |
---|
RtcEngineConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addExtension(java.lang.String providerName) |
java.lang.String |
getAppId() |
int |
getAreaCode() |
int |
getAudioScenario() |
int |
getChannelProfile() |
Context |
getContext() |
boolean |
getDomainLimit() |
IMediaExtensionObserver |
getExtensionObserver() |
java.lang.String |
getLicense() |
RtcEngineConfig.LogConfig |
getLogConfig() |
java.lang.Integer |
getThreadPriority() |
public Context mContext
public java.lang.String mAppId
RtcEngine
instance. To change your App ID, call
destroy to destroy
the current RtcEngine
instance and then
call `create` to create an RtcEngine
instance with the new App ID.public int mAreaCode
AreaCode
. After specifying the region, the app that integrates the Agora SDK connects to the
Agora servers within that region.public IAgoraEventHandler mEventHandler
IRtcEngineEventHandler
is an abstract class providing default
implementation. The SDK uses this class for reporting on SDK runtime events.public int mChannelProfile
RtcEngine
.
The Agora RtcEngine differentiates channel profiles and applies different optimization
algorithms accordingly. For example, it prioritizes smoothness and low latency for a video
call, and prioritizes video quality for a video broadcast.public java.lang.String mLicense
public int mAudioScenario
AudioScenario
.public java.util.List<java.lang.String> mExtensionList
RtcEngine.pullPlaybackAudioFrame(ByteBuffer, int)
. This value must be falsepublic IMediaExtensionObserver mExtensionObserver
public RtcEngineConfig.LogConfig mLogConfig
public java.lang.Integer mThreadPriority
ThreadPriorityType
public java.lang.String mNativeLibPath
System.load(String)
to load the library at the
specify path; otherwise, System.loadLibrary(String)
} will be used.public boolean mDomainLimit
public void addExtension(java.lang.String providerName)
public Context getContext()
public java.lang.String getAppId()
public int getChannelProfile()
public java.lang.String getLicense()
public int getAudioScenario()
public int getAreaCode()
public IMediaExtensionObserver getExtensionObserver()
public RtcEngineConfig.LogConfig getLogConfig()
public java.lang.Integer getThreadPriority()
public boolean getDomainLimit()