Skip to main content
Android
iOS
macOS
Web
Windows
Electron
Flutter
React Native
React JS
Unity
Unreal Engine
Unreal (Blueprint)

Compile and run a sample project

Agora provides open-source sample projects on GitHub to demonstrate the implementation of basic and advanced Video SDK features.

This page shows how to compile, configure, and run the Video SDK Unreal Engine sample project.

Prerequisites

  • A camera and a microphone
  • A valid Agora account and project
  • Installed Git

Project setup

Get the sample project

  1. Run the following command to clone the repository locally:

    git clone git@github.com:AgoraIO-Extensions/Agora-Unreal-RTC-SDK.git
    Copy
  2. The C++ API usage examples are located in /Agora-Unreal-SDK-CPP-Example. These include:

    DescriptionPath
    Basic functions/Agora-Unreal-SDK-CPP-Example/Content/API-Example/Basic
    Advanced functions/Agora-Unreal-SDK-CPP-Example/Content/API-Example/Advance

Configure the sample project

Refer to the following steps to integrate the SDK:

  1. Go to SDKs to download the latest version of the Video SDK and unzip it.
  2. Under your project root folder, create a folder named Plugins.
  3. Copy AgoraPlugin from the SDK folder to Plugins.

Run the sample project

In the Unreal Editor, you can compile and run the sample project at the main level or any sublevel.

  1. In the path of the C++ API example, double-click AgoraExample.uproject to open the project.

  2. Double-click MainLevel, then click Compile and run the sample project. You see the following interface:

  3. Fill in the text box with the App ID and temporary token you obtained from the Agora Console, and the channel name you used to generate the token.

  4. Click the button on the left to navigate from the main level to the sub-levels of the API example to experience the selected demo. Choose BasicVideoCallScene as an example, click JoinChannel to join the channel. You see yourself in the local view.

  5. To test various audio and video interaction scenarios, connect to the Agora web demo, or install and run the sample project on a second device. Make sure you use the same App ID on both devices. When you join the same channel from two devices, you can see and hear each other.

Video Calling