δΈζ | English
Use Agora RTC SDK with C#!
- Visual Studio 2017+ with C++ (Windows)
- .NET
For Visual Studio users, please refer to Usage.
dotnet add package agora_rtc_sdk
-
Clone the repository.
git clone https://github.com/AgoraIO-Community/Agora-C_Sharp-SDK.git
-
Compile SDK.
Open
agorartc/agorartc.sln
via Visual Studio. Build Solution.
A GUI demo has been contained in the repository.
- Open
OneToOneVideo/OneToOneVideo.sln
via Visual Studio. - In
Solution Explorer
, findOneToOneVideo->Dependencies
and right click. Then, clickManage NuGet Packages...
. - Click
Browse
button, searchagora_rtc_sdk
and install the package. - Find all DLL files showed in
Solution Explorer
and set theCopy to Output Directory
property inProperties->Advanced
toCopy always
. - Run demo.
By following [self-compiling SDK](#Method 2: Compile SDK) in Installation section, please follow the instructions below.
-
Download the required Native SDK.
Download SDK Agora Video SDK for Windows. Unzip the downloaded SDK package and copy all the
.dll
fileslibs/x86_64
intoOneToOneVideo/OneToOneVideo
folder. -
Copy other required DLL files.
Copy
agorartc/agorartc/bin/debug/netcoreapp3.1/agorartc.dll
andiris.dll
intoOneToOneVideo/OneToOneVideo
folder. -
Open
OneToOneVideo/OneToOneVideo.sln
via Visual Studio. Run demo.
If you do not have an App ID, see Appendix.
For more information about our API, please refer to Agora C++ API.
C# API reference is on proceeding while C++ API is similar.
To use our SDK, you must obtain an app ID:
- Create a developer account at agora.io. Once you finish the sign-up process, you are redirected to the dashboard.
- Navigate in the dashboard tree on the left to Projects > Project List.
- Copy the app ID that you obtained from the dashboard into a text file. You will use it when you run demo (there is an input box in our GUI demo).