Using the Demo Application
Agora provides a demo application in the Agora Native SDK for Windows zip file. AgoraDemo includes basic methods of joining and leaving a call, demonstrates the core operations of Agora Native SDK for Windows and enables audio and video calls with simple method calls. The demo consists of the following files.
AgoraDemo\SDKDemo\AgoraDemo: The source file folder of the demo program
AgoraDemo\SDKDemo\SDKDemo.sln: The project file of the demo program
SDK\: The SDK framework including DLLs and include files
Note: Visit https://github.com/AgoraLab/ for more Open Source demo applications.
Compiling the Demo Program
Run Visual C++.
- Open the .\AgoraDemo\SDKDemo\SDKDemo.sln project file.
Press the F5 key. The compiler automatically compiles and runs the demo application.
Executing the Demo Program
The compiler automatically compiles and runs the demo application.
The AgoraDemo requires two clients for voice and video communication. One is your Windows demo application, and the other is another Windows system running the same demo. It could also be the AgoraDemo running on an iOS or Android phone, if you have also built the demo for these platforms (from their own Native SDK package).
Make a voice call:
- On both clients (Computer + Computer or Computer + Phone), enter the same vendor key and ChannelName (such as 2222, displayed as “room” in the phone demos), and select AudioMode.
- Click OK to enter the voice call. After a successful login, the screen displays the current channel number and UID.
Because this is a voice call, most of the screen is unused – the other screen areas are there for the video part of the demo.
Several functions are now available to you: Mute / off mute, turn on / off the speaker, leave the channel, and so on.
Make a video call:
- On both clients(Computer + Computer or Computer + Phone), enter the same vendor key and ChannelName (such as 2222, displayed as “room” in the phone demos) and select VideoMode. You need a camera to send video.
- Click OK to enter the video call. After successful login the screen displays the current channel number and UID.
Your own video is shown in the left-hand window, as shown, and video from other demo clients connected to the same channel is displayed on in the other windows on your screen when they join the channel.
Several functions are now available to you: mute / off-mute, turn on / off the speaker, turn on / off the camera, leave the channel, and so on.