English | 中文
This repository contains sample projects using the Agora RTC C++ SDK for Windows.
The project uses a single program to combine a variety of functionalities. Each function is loaded as a window for you to play with.
- The default Visual Studio version for this project is 2017. If you are using other versions of Visual Studio, you may need additional adjustments.
- Windows 7 or higher. If you use Windows XP, you also need to install plugins for Windows XP compatibility when compiling the Release version.
-
Navigate to the windows folder and run following command to install project dependencies:
$ installThirdParty.bat
Note: If you encounter ps1 script errors, you may need to update your powershell.
-
Open the
APIExample.sln
file with Visual Studio. -
Edit the
stdafx.h
file. Enter your App ID and token.#define APP_ID "<enter your agora app id>" #define APP_TOKEN ""
See Set up Authentication to learn how to get an App ID and access token. You can get a temporary access token to quickly try out this sample project.
The Channel name you used to generate the token must be the same as the channel name you use to join a channel.
To ensure communication security, Agora uses access tokens (dynamic keys) to authenticate users joining a channel.
Temporary access tokens are for demonstration and testing purposes only and remain valid for 24 hours. In a production environment, you need to deploy your own server for generating access tokens. See Generate a Token for details.
-
Select x86 as the platform version. Build and run the solution in your Windows device.
You are all set! Feel free to play with this sample project and explore features of the Agora RTC SDK.
If you have any problems or suggestions regarding the sample projects, feel free to file an issue.
- Check our FAQ to see if your issue has been recorded.
- Dive into Agora SDK Samples to see more tutorials
- Take a look at Agora Use Case for more complicated real use case
- Repositories managed by developer communities can be found at Agora Community
- If you encounter problems during integration, feel free to ask questions in Stack Overflow
The sample projects are under the MIT license. See the LICENSE file for details.