Video Call
  • iOS
  • Android
  • Web
  • Flutter
  • React Native
  • Electron
  • Unity3D
  • Cocos Creator
  • Windows
  • macOS
  • Linux : Java
  • Overview
  • Develop your app
    • Integrate the SDK
    • Implement a basic video call
    • Enhance basic feature
      • Config your video based on scenes
  • Upgrade using advanced features
    • Advanced features
      • Improve video quality
        • Configure bandwidth management
        • Monitor streaming quality
      • Message signaling
        • Convey extra information using SEI
      • Play media files
        • Play media files
        • Play sound effects
  • Resources & Reference
    • SDK
    • Sample codes
    • API reference
      • Client APIs
      • Server APIs
    • Debugging
      • Error codes
    • FAQs
    • Key concepts
  • Documentation
  • Video Call
  • Develop your app
  • Integrate the SDK

Integrate the SDK

Last updated:2023-03-09 16:58

Set up the development environment

Before integrating the ZEGO Express SDK, make sure the development environment meets the following requirements:

  • Any Linux distro with GLIBC 2.16 or above, supporting x86_64, aarch64, armhf, armel architectures
  • libasound (ALSA)
  • libv4l2 (v4l utils)
  • JDK 1.7 or later
  • Apache Maven 3.6 or later
  • The SDK depends on libasound (ALSA) and libv4l2 (v4l utils).
  • CentOS (RHEL/Fedora) can be installed by executing yum install alsa-lib-devel libv4l-devel command.
  • Ubuntu (Debian/Deepin) can be installed by executing apt install libasound2-dev libv4l-dev command.
  • For other platforms and systems, please install them by yourself.
  • If you need to cross-compile, you can refer to How to cross-compile alsa-lib and How to cross-compile v4l-utils. Note that the target machine also needs to have libasound and libv4l2 dependencies installed.

Integrate the SDK

  1. Download the latest version of the SDK. For more details, see SDK downloads .
  2. Choose either of the following two methods to integrate the SDK.

Method 1: Install a JAR in the local repository

a. First, install a JAR in the local repository using the following command:

$ mvn install:install-file -Dfile=ZegoExpressEngine.jar -DgroupId=im.zego.express -DartifactId=ZegoExpressEngine -Dversion=1 -Dpackaging=jar

b. Then, modify the pom.xml configuration file of your project to add dependencies in the <dependencies>:

  <dependencies>
    <dependency>
      <groupId>im.zego.express</groupId>
      <artifactId>ZegoExpressEngine</artifactId>
      <version>1</version>
    </dependency>
  </dependencies>

Method 2: Add a JAR file to an IntelliJ IDEA project

a. Open your IntelliJ IDEA project and select the File > Project Structure.

b. In the Project Structure dialog, select Libraries in the left pane, click +, and select Java.

c. Select the JAR package and click Open to import it.

Page Directory