In this step, you need to use the App ID of your project. When you use the UI setting of the demo project, you can see the following interface:Ĭreate and initialize the IRtcEngine object before calling any other Agora APIs. If you are implementing a video call, we recommend adding the following elements into the UI: Skip to Initialize IRtcEngine if you already have a UI in your project. The following figure shows the API call sequence of a basic one-to-one video call.Ĭreate the user interface (UI) for the one-to-one video call in your project. This section introduces how to use the Agora SDK to make a video call. Go to the Linker > Input > Additional Dependencies menu, click Edit, and input agora_rtc_sdk.lib in the pop-up window.Go to the Linker > General > Additional Library Directories menu, click Edit, and input $(SolutionDir) in the pop-up window.Go to the C/C++ > General > Additional Include Directories menu, click Edit, and input $(SolutionDir)include in the pop-up window.Right-click the project name in the Solution Explorer window, click Properties to configure the following project properties, and click OK. Copy the x86 or x86_64 folder of the downloaded SDK package to your project files according to your development environment.Go to SDK Downloads, download the latest version of the Agora SDK for Windows, and unzip the downloaded SDK package.On the MFC Application panel, choose Application type > Dialog based, and click Finish.įollow these steps to integrate the Agora Video SDK into your project.On the New Project panel, choose MFC Application as the project type, input the project name, choose the project location, and click OK.Open Microsoft Visual Studio and click Create new project.Skip to Integrate the SDK if a Windows project already exists. Now, let's build a Windows project from scratch. In this section, we will create a Windows project and integrate the SDK into the project. Open the specified ports in Firewall Requirements if your network has a firewall. A Windows device running Windows 7 or later.We provide the open-source sample projects that implement the video call on GitHub:īefore implementing a video call, you can download the sample projects and refer to the source code. The channel name: A string that identifies the channel for the video call.For this page, you use a temporary token with a validity period of 24 hours that you retrieve from Agora Console. A token: In a test or production environment, your app client retrieves tokens from a server in your security infrastructure.You need to specify the user ID yourself, and ensure that it is unique in the channel. The user ID: The unique identifier of a user.You can get the App ID from Agora Console. The App ID: A randomly generated string provided by Agora for identifying your app.Publish and subscribe to audio and video in the channelĪfter joining a channel, the app client automatically publishes and subscribes to audio and video in the channel.įor an app client to join a channel, you need the following information: App clients that pass the same channel name join the same channel. In a test or production environment, your app client retrieves tokens from a server in your security infrastructure.Ĭall joinChannel to create and join a channel. The following figure shows the workflow to integrate into your app in order to add Video Call functionality.Īs shown in the figure, the workflow for adding Video Call in your project is as follows:Ī token is the credential that authenticates a user when your app client joins a channel. Use this guide to quickly start a basic video call with the Agora Video SDK for Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |