Net.Agora.Video.Android 4.6.3.5

dotnet add package Net.Agora.Video.Android --version 4.6.3.5
                    
NuGet\Install-Package Net.Agora.Video.Android -Version 4.6.3.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Net.Agora.Video.Android" Version="4.6.3.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Net.Agora.Video.Android" Version="4.6.3.5" />
                    
Directory.Packages.props
<PackageReference Include="Net.Agora.Video.Android" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Net.Agora.Video.Android --version 4.6.3.5
                    
#r "nuget: Net.Agora.Video.Android, 4.6.3.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Net.Agora.Video.Android@4.6.3.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Net.Agora.Video.Android&version=4.6.3.5
                    
Install as a Cake Addin
#tool nuget:?package=Net.Agora.Video.Android&version=4.6.3.5
                    
Install as a Cake Tool

Net.Agora.Android

NuGet Targets: net8.0 | net9.0 | net10.0 full-rtc-basic 4.6.3 Licence: MIT

.NET for Android and .NET MAUI bindings for Agora's native Android SDKs.

Seven products are bound, from net8.0-android through net10.0-android:

Package Native artifact Use it when
Net.Agora.Video.Android io.agora.rtc:full-rtc-basic The app shows or sends video (also carries the full audio surface).
Net.Agora.Voice.Android io.agora.rtc:voice-rtc-basic Audio only — the same engine built without the video pipeline, a ~20 MB smaller .aar.
Net.Agora.Signaling.Android io.agora:agora-rtm Realtime messaging (Signaling / RTM 2.x, its own 2.2.x version line) — coexists with either RTC package.
Net.Agora.Chat.Android io.agora.rtc:chat-sdk Persistent messaging (Chat / IM 1.x, its own version line) — coexists with everything else here.
Net.Agora.Whiteboard.Android com.github.netless-io:whiteboard-android The Interactive Whiteboard (2.16.x). A WebView SDK from JitPack, not Maven Central — it carries no native code, so it coexists with everything else here.
Net.Agora.Fastboard.Android com.github.netless-io:fastboard-android netless's ready-made UI over the whiteboard (1.8.x) — a board with a working toolbar rather than a bare canvas. Depends on the row above.
Net.Agora.IoT.Android io.agora:iotsdk Agora IoT devices (1.3.x). Android only — there is no iOS SDK, so no cross-platform client — and exclusive with every package above, whose native artifacts it bundles its own copies of.

Alongside them, twelve Net.Agora.Extensions.<Name>.Android packages carry the RTC SDK's optional features — AI noise suppression, virtual background, spatial audio, the video enhancement filters, the software encoders and the rest. They are native payload only: the switch that turns each one on already exists on Agora.Rtc.RtcEngine, and what these packages add is the .so the engine loads when it is flipped. Add one alongside either RTC package — they depend on neither, so they do not force a flavour. See src/Agora.Extension.md for the full list and for what is deliberately absent.

dotnet add package Net.Agora.Video.Android   # or Net.Agora.Voice.Android

Pick one of the RTC pair: both .aars carry the same Java classes (io.agora.rtc2.*), so referencing both fails the build at dex merge — mirroring Agora's own artifacts, where an app depends on the full or the voice SDK, never both. For the same reason both bindings expose the same Agora.Rtc namespace (renamed from io.agora.rtc2 to match Agora's own C# / Unity SDK naming), so an app can switch packages without touching code.

These are raw platform bindings — the full class-parse-generated surface, Agora.Rtc.RtcEngine and friends. Most apps want the cross-platform clients instead: Net.Agora.Video / Net.Agora.Voice, which wrap these packages and their iOS siblings behind one API. Reach for a binding directly only when you need something the cross-platform client does not expose.

using Agora.Rtc;

var config = new RtcEngineConfig { MContext = context, MAppId = "<APP_ID>" };
var engine = RtcEngine.Create(config);

engine.EnableVideo();
engine.JoinChannel(token: null, channelId: "my-channel", optionalInfo: null, uid: 0);

How this repository works

This repository is the only thing that binds Agora's Android SDKs: Net.Agora (the cross-platform façade) and Net.Agora.iOS (the iOS binding) are separate repositories, each with their own release cadence. Each package's version is <native artifact version>.<binding revision> — see Directory.Build.props for why the Android and iOS lines don't share a version number. The package set lives in build/packages.tsv; adding a package means adding a row there and a project under src/.

What is bound, and why not full-sdk / voice-sdk

io.agora.rtc:full-sdk (and its voice counterpart voice-sdk) is a POM-only aggregator over optional plugin .aars — AI noise suppression, face detection, virtual background, screen sharing, and so on. Binding all of it pulls in features these packages expose no API for, and Android's Java dependency verification (XA4241) refuses to build unless every one of those plugins is present too. io.agora.rtc:full-rtc-basic / voice-rtc-basic are Agora's own base artifacts: RtcEngine and the core surface these packages bind, with exactly one dependency (io.agora.infra:aosl).

Each project's Transforms/Metadata.xml removes the few internal implementation classes that class-parse cannot bind cleanly on its own — for Video the default camera/screen capturer, for both the raw video-frame/EGL/texture pipeline and the spatial-audio impl class — none of which a consumer of RtcEngine calls directly. (The voice .aar ships the same shared Java API layer, video types included; only the native pipeline differs.)

Building locally

dotnet build src/Net.Agora.Video.Android/Net.Agora.Video.Android.csproj -f net9.0-android35.0
./build/BuildNugets.sh
dotnet test tests/Net.Agora.Android.PackageTests

Nothing is fetched or committed: AndroidMavenLibrary resolves the .aar straight from Maven Central for net9.0-android35.0/net10.0-android36.0, cached under ~/.cache/dotnet-android/MavenCacheDirectory. net8.0-android34.0 uses a different path — that SDK pack has no AndroidMavenLibrary support at all, so src/Agora.Binding.props downloads the same .aar directly with an MSBuild DownloadFile target instead. See the comments there for why this matters: the unsupported item is silently ignored rather than erroring, so a build using it on net8 "succeeds" with an empty few-KB binding assembly and no error anywhere in the log.

No single .NET SDK builds net8, net9 and net10 for Android, so BuildNugets.sh packs twice (the installed SDK's band, then a net10 pass from a scratch global.json) and merges the results — see build/merge-packages.py.

Tests

Everything runs against the packed .nupkg in artifacts/, not the build output, because the failure modes worth catching here are packaging ones — most importantly the net8 "empty shell" trap above, which builds with 0 errors and 0 warnings.

  • tests/Net.Agora.Android.PackageTests (plain xUnit, runs anywhere) asserts the package layout — a real binding assembly and the native .aars for every target framework — and, through the metadata reader, the API itself: the core Agora.Rtc types exist, the IO.Agora.Rtc2 → Agora.Rtc rename left nothing behind, and RtcEngine still exposes the channel lifecycle entry points. A binding that failed to generate still packs cleanly; these are what notice.
  • tests/Net.Agora.Android.DeviceTests is a bare Android app (no MAUI, no test framework) that consumes the packed package and drives the raw binding on an emulator. One app holds one product, chosen with -p:AgoraDevicePackage=, and each product has its own suite behind its own define — six of them: Video/Voice create the engine, enable and disable video and audio and run the local camera preview; Signaling creates the client and drives the async adapters' fault path; Chat checks its three .so files are in the app, initialises the SDK and has a send refused through the SDK's own callback; Whiteboard checks the JavaScript bundle shipped as an asset, that WhiteboardView really extends DSBridge's DWebView, and builds the SDK against a live board view on the UI thread; Fastboard checks all three of its .aars and its merged toolbar resources, then inflates the board and reaches the whiteboard view through it. No Agora credentials are involved anywhere — identifiers are syntactically valid but unregistered, which is enough for everything short of joining, and every wait is bounded. Each run reports a single AGORA_E2E_DONE PASS/FAIL line to logcat, which .github/scripts/run-emulator-tests.sh turns into an exit code — the same marker the Net.Agora façade's own device tests use.

In CI (.github/workflows/build.yml) the validate job runs the package tests and the e2e job runs the emulator suite per package — Video, Voice, Chat, Whiteboard and Fastboard, one leg each since a single app can hold only one — on net8.0-android34.0 and net10.0-android36.0, the two extremes: net8's .aar arrives through the DownloadFile fallback, and net10's assets are grafted in by the merge step, so those are the two that could each break alone. Signaling gets one leg of its own with Java shrinking (R8) turned on, which is where the keep rules the packages ship in buildTransitive/ are exercised. The sample job additionally links every sample that exists here for android-arm64 in Release — trimmed, AOT-compiled, R8-shrunk and packaged into a signed APK — which is the only check in the repository that covers the configuration a shipping app is built in.

Run the emulator suite locally, with an emulator already booted. Each product has its own version line, so pass its own (build/pins.sh resolves them):

./build/BuildNugets.sh
. ./build/pins.sh
export AGORA_DEVICE_RID=android-arm64          # an arm64 emulator, e.g. on Apple silicon
./.github/scripts/run-emulator-tests.sh "$AGORA_VIDEO_PACKAGE_VERSION" net9.0-android35.0
./.github/scripts/run-emulator-tests.sh "$AGORA_VOICE_PACKAGE_VERSION" net9.0-android35.0 Voice
./.github/scripts/run-emulator-tests.sh "$AGORA_CHAT_PACKAGE_VERSION" net10.0-android36.0 Chat

Sample

samples/Net.Agora.Sample.Android is a MAUI app built straight against the packages — no cross-platform façade — that creates Agora.Rtc.RtcEngine and shows the local camera preview with a front/back flip: an App ID entry, camera/microphone permission handling, and a SurfaceView behind a small MAUI handler (see its AgoraVideoView.cs for why a custom handler rather than a wrapped view). Its Try Signaling button drives Agora.Rtm.RtmClient from the same app — the coexistence of the two products, proven at dex-merge time just by building.

samples/Net.Agora.Sample.Voice.Android is its audio-only sibling against Net.Agora.Voice.Android: capture, mute, speakerphone routing and the who-is-speaking volume reports, with no camera permission anywhere.

samples/Net.Agora.Sample.Signaling.Android drives Agora.Rtm.RtmClient on its own — a tiny chat room (log in, subscribe, publish, receive) written against the raw callback API, to show what the façade hides.

The full join/publish/subscribe flows, wrapped behind one cross-platform API, are Net.Agora's samples.

It consumes the packed Net.Agora.Video.Android package from ./artifacts (see NuGet.config), so pack first. It targets net10.0-android36.0 and needs the .NET 10 SDK with the maui-android workload, which this repository's global.json does not select — hence the scratch directory:

./build/BuildNugets.sh
cd /tmp && dotnet new globaljson --sdk-version 10.0.100 --force
dotnet build <repo>/samples/Net.Agora.Sample.Android/Net.Agora.Sample.Android.csproj

Net.Agora.Android.sln deliberately contains the binding project and the tests but not the sample, so dotnet build Net.Agora.Android.sln does not require the MAUI workload.

Licence

MIT — see LICENSE. Agora's own SDK is distributed under Agora's SDK licence terms.

Product Compatible and additional computed target framework versions.
.NET net8.0-android34.0 is compatible.  net9.0-android was computed.  net9.0-android35.0 is compatible.  net10.0-android was computed.  net10.0-android36.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0-android36.0

    • No dependencies.
  • net8.0-android34.0

    • No dependencies.
  • net9.0-android35.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Net.Agora.Video.Android:

Package Downloads
Net.Agora.Video

One API over the Agora Video SDK for Android and iOS: join a channel and publish/subscribe audio and video with awaitable calls and ordinary .NET events, instead of writing a per-platform adapter over a Java event-handler class and an Objective-C delegate. Pulls in the platform binding that matches whichever target framework you build. For .NET MAUI apps, add Net.Agora.Video.Maui for the video view.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.6.3.5 172 7/26/2026
4.6.3.5-beta.12.24 57 7/31/2026
4.6.3.5-beta.11.21 68 7/30/2026
4.6.3.5-beta.11.19 48 7/30/2026
4.6.3.5-beta.10.18 60 7/29/2026
4.6.3.5-beta.9.17 64 7/28/2026
4.6.3.5-beta.8.16 82 7/26/2026
4.6.3.5-beta.8.15 67 7/26/2026
4.6.3.4 139 7/25/2026
4.6.3.4-beta.7.14 57 7/25/2026
4.6.3.4-beta.6.13 63 7/25/2026
4.6.3.3 125 7/24/2026
4.6.3.3-beta.5.9 76 7/24/2026
4.6.3.3-beta.4.8 69 7/24/2026
4.6.3.2 122 7/24/2026
4.6.3.2-beta.3.4 67 7/24/2026
4.6.3.1 109 7/23/2026
4.6.3.1-beta.2.3 61 7/24/2026
4.6.3.1-beta.2.2 68 7/24/2026
4.6.3.1-beta.1.1 71 7/23/2026
Loading failed