/OpenVideoCall-Android

Actively maintained at: https://github.com/AgoraIO/Basic-Video-Call/tree/master/Group-Video/OpenVideoCall-Android

Primary LanguageJavaMIT LicenseMIT

Open Video Call for Android

其他语言版本: 简体中文

The Open Video Call for Android Sample App is an open-source demo that will help you get video chat integrated directly into your Android applications using the Agora Video SDK.

With this sample app, you can:

  • Join / leave channel
  • Mute / unmute audio
  • Enable / disable video
  • Switch camera
  • Send message to channel
  • Setup resolution, frame rate and bit rate
  • Enable encryption
  • Enable / disable black and white filter

A tutorial demo can be found here: Agora-Android-Tutorial-1to1

Agora Video SDK supports iOS / Android / Windows / macOS etc. You can find demos of these platform here:

Running the App

First, create a developer account at Agora.io, and obtain an App ID. Update "app/src/main/res/values/strings_config.xml" with your App ID.

<string name="private_app_id"><#YOUR APP ID#></string>

Next, integrate the Agora Video SDK and there are two ways to integrate:

  • The recommended way to integrate:

First, add the address which can integrate the Agora Video SDK automatically through JCenter in the property of the dependence of the "app/build.gradle":

compile 'io.agora.rtc:full-sdk:2.2.0'

(Adding the link address is the most important step if you want to integrate the Agora Video SDK in your own application.)

Then, download the Agora Video SDK from Agora.io SDK. Unzip the downloaded SDK package and copy *.h under libs/include to app/src/main/cpp/agora.

  • Alternative way to integrate:

First, download the Agora Video SDK from Agora.io SDK. Unzip the downloaded SDK package and copy *.jar under libs to app/libs, arm64-v8a/x86/armeabi-v7a under libs to app/src/main/jniLibs, *.h under libs/include to app/src/main/cpp/agora.

Then, add the following code in the property of the dependence of the "app/build.gradle":

compile fileTree(dir: 'libs', include: ['*.jar'])

Finally, open project with Android Studio, connect your Android device, build and run.

Or use Gradle to build and run.

Developer Environment Requirements

  • Android Studio 2.0 or above
  • Real devices (Nexus 5X or other devices)
  • Some simulators are function missing or have performance issue, so real device is the best choice

Connect Us

License

The MIT License (MIT).