In this quickstart, you will learn how to use the Interactive Gaming Voice C++ SDK to make a voice call on Android platform.
See Set up the development environment for the prerequisites, environment setup and SDK integration.
When you use the SDK, the steps to add SDK and add sourceSets are different from using Agora Native SDK:
Download the Interactive Gaming Audio Only SDK
Load the SDK dynamic library in App Activity as shown:
Add the jar package dependency directory under build.gradle as shown:
In the build configuration file:
Declare shared library module
Export header files for shared libraries
Link dynamic library files
Create an IRtcEngine object and fill in your App ID.
m_lpAgoraEngine = (IRtcEngine *)createAgoraRtcEngine(); RtcEngineContext ctx; // inherit the event handler m_EngineEventHandler from IRtcEngineEventHandler ctx.eventHandler = &m_EngineEventHandler; // Fill in your App ID ctx.appId = APP_ID; m_lpAgoraEngine->initialize(ctx);
Create and join a channel.
m_lpAgoraEngine->joinChannel(NULL, "Your Cahnnel Name", NULL, 0);
You can now start 1 on 1 chat or group chat! The only difference is that the number of people joining the same channel.