Live Streaming
  • iOS
  • Android
  • Web
  • Flutter
  • React Native
  • Electron
  • Unity3D
  • Windows : C++
  • macOS
  • Linux
  • Overview
  • Live Streaming vs. Interactive Live Streaming
  • Develop your app
    • Live Streaming
      • Integrate the SDK
      • Implement a basic live streaming
      • Enhance basic livestream
      • CDN
      • Play live streams
    • Interactive Live Streaming
  • Upgrade the livestream
    • Advanced features
      • Enhance the livestream
        • Share the screen
        • Improve your appearance in the livestream
        • Beautify & Change the voice
        • Output the livestream in H.265
        • Watermark the live/Take snapshots
        • Config video codec
        • Visualize the sound level
      • Message signaling
        • Convey extra information using SEI
        • Broadcast real-time messages to a room
        • Quotas and limits
      • Ensure livestream quality
        • Test network and devices in advance
        • Monitor streaming quality
        • Configure bandwidth management
      • Play media files
        • Play media files
        • Play sound effects
      • Record video media data
      • Join multiple rooms
      • Publish multiple live streams
      • Low-latency live streaming
      • Use the bit mask
      • Common audio config
      • Playing streams via URL
      • Mix the live streams
    • Distincitve features
      • Set the voice hearing range
      • Single stream transcoding
      • Low-light enhancement
      • Customize the video and audio
  • Upgrade using Add-on
  • Resources & Reference
    • SDK
    • Sample code
    • API reference
      • Client APIs
      • Server APIs
    • Debugging
      • Error codes
    • FAQs
    • Key concepts
  • Documentation
  • Live Streaming
  • Develop your app
  • Live Streaming
  • 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:

  • Visual Studio 2015 or later
  • Windows 7 or later
  • External devices that support audio and video features such as microphones and cameras.

Create a new project

Skip this step if a project already exists.

Create a new project
  1. Open Microsoft Visual Studio, click File > New > Project.
  1. In the New Project window, select the MFC program, and fill in the Name, Location, and Solution name, and then click OK.
  1. In the MFC program window, navigate Program Type, select based on dialogue, and then click OK.

Import the SDK

  1. Install the SDK. For details, see SDK downloads .

  2. Extract the files from the SDK packages and copy the files to your project directory.

The SDK package includes two directories: include and lib. The SDK contains two folders as illustrated below:

include    --------------- SDK header file included.
lib        --------------- SDK .lib and .dll files included.
| x86   --------------- 32-bit version
| x64   --------------- 64-bit version

Set project property

To set project property, right-click the project name in the Solution Explorer window, click Properties, and configure the following :

  1. Add the include directory to the header file search path.
  • C/C++ -> General-> Add the include directory to Additional include Directories

/Pics/QuickStart/windows_set_property_1.png

  1. Add the lib directory to the library search path.
  • Linker-> General-> Add the library directory lib/x86 or lib/x64 to the Additional Library Directories

/Pics/QuickStart/windows_set_property_3.png

  1. Specify the link library ZegoExpressEngine.lib
  • Linker-> Input-> Add ZegoExpressEngine.lib to Additional Dependencies

/Pics/QuickStart/windows_set_property_2.png

Page Directory