Documentation
ExpressAudioSDK Voice Call
Documentation
Demo APP
SDK Center
API Center
FAQ
Code Market
Console
Sign Up
Log In
中文站 English
  • Documentation
  • Voice Call
  • Develop your app
  • Integrate the SDK

Integrate the SDK

Last updated:2023-12-20 14:28

Set up the development environment

Before integrating the ZegoEffects SDK, make sure your development environment meets the following requirements:

  • Electron 7.0.0 or later.
  • Windows 7 or later / macOS 10.10 or later.
  • Audio and video devices: microphone and camera.
  • Your computer is connected to the internet.
  • Node.js: We recommend you install the Long Term Support (LTS) version provided on the Node.js official website.

Create a new project

Skip this step if a project already exists.

Create a new project

For more details, see Electron - Quick start.

Import the SDK

To import the SDK, you will need to download the SDK package first. To download it, run the npm command npm install zego-express-engine-electron.

  • For the latest version of SDK, go to SDK downloads.
  • If downloading the image on NPM official website is slow when running npm install to install the SDK, you can switch it to the domestic image.

Import the SDK in your project script file.

const zgEngine = window.require('zego-express-engine-electron/ZegoExpressEngine');
const zgDefines = window.require('zego-express-engine-electron/ZegoExpressDefines');
console.log(zgEngine.getVersion())

If the correct SDK version number is printed out in the console when you run the project, the SDK import is successful.

Page Directory
  • Free trial
  • 提交工单
    咨询集成、功能及报价等问题
    电话咨询
    400 1006 604
    Get Consulting
    Scan Wechat QR code