DT.Xamarin.AntMedia.WebRTC.Forms 1.0.6

.NET Standard 2.0
There is a newer version of this package available.
See the version list below for details.
dotnet add package DT.Xamarin.AntMedia.WebRTC.Forms --version 1.0.6
NuGet\Install-Package DT.Xamarin.AntMedia.WebRTC.Forms -Version 1.0.6
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="DT.Xamarin.AntMedia.WebRTC.Forms" Version="1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DT.Xamarin.AntMedia.WebRTC.Forms --version 1.0.6
#r "nuget: DT.Xamarin.AntMedia.WebRTC.Forms, 1.0.6"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install DT.Xamarin.AntMedia.WebRTC.Forms as a Cake Addin
#addin nuget:?package=DT.Xamarin.AntMedia.WebRTC.Forms&version=1.0.6

// Install DT.Xamarin.AntMedia.WebRTC.Forms as a Cake Tool
#tool nuget:?package=DT.Xamarin.AntMedia.WebRTC.Forms&version=1.0.6
CRITICAL thing about SDK It Does Not Support Any Simulator build for now

Xamarin Forms WebRTC Sample app


you need up running Ant Media Server, detailed explanation here

How to use nuget

  • to all projects, Core, iOS, Android - add nuget package DT.Xamarin.AntMedia.WebRTC.Forms NuGet Package

  • to Android project - add nuget package DT.Xamarin.AntMedia.WebRTC.Android NuGet Package

  • to iOS project - add nuget package DT.Xamarin.AntMedia.WebRTC.iOS NuGet Package

  • add AntManagerIos.Init(); to AppDelegate.cs

      public override bool FinishedLaunching(UIApplication app, NSDictionary options)
              LoadApplication(new App());
              return base.FinishedLaunching(app, options);
  • Configure Android Intent for Nuget Open Android/MainActivity.cs Add code to OnCreate

using DT.Xamarin.AntMedia.WebRTC.Forms.Android;

       protected override void OnCreate(Bundle savedInstanceState)
 //Begin Inserted
//End Inserted

            global::Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
  • add android and ios permissions usage

Modify Properties/AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.dreamteammobile.antmedia.dt_antmedia_tutorial_forms">
    <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" />
    <application android:label="DT.AntMedia.Tutorial.Forms.Android" android:theme="@style/MainTheme"></application>
    <uses-feature android:name="android.hardware.camera" />
    <uses-feature android:name="android.hardware.camera.autofocus" />
    <uses-feature android:glEsVersion="0x00020000" android:required="true" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

add Camera and Microphone Permissions usage description to Info.plist

	<string>Camera access is required for video chat</string>
	<string>Microphone access is required for video chat</string>
  • add reference to framework on page or some view in Core project


    and use special control AntWebRTCView

    <?xml version="1.0" encoding="utf-8"?>

    You done! run and check

  • then you can use our Documentation for detailed description on controls

  • or simple Tutorial

What available in our sample

Simple copy of AntMedia sample app with all basic video call functions:

  • Start/Stop Publishing WebRTC stream
  • Start/Stop Playing WebRTC stream
  • Init to preview from camera before start publishing
  • Mute audio
  • Mute video
  • Switch camera

How to Run Sample

  1. Start from DT.Xamarin.AntMedia.Samples.sln

  2. replace constant to your server addres in DT.Configuration/InitialData.cs

public const string SERVER_ADDRESS = "domain-name.com:5080";
  1. Set Froms.Android or Forms.iOS project as Startup Project, click Run button in Visual Studio.
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid monoandroid10
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios xamarinios10
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.2 2,495 1/18/2021
1.2.1 240 1/18/2021
1.1.0 331 12/3/2020
1.0.9 303 12/3/2020
1.0.8 309 12/3/2020
1.0.7 279 12/3/2020
1.0.6 420 11/8/2020
1.0.3 315 11/3/2020
1.0.2 318 11/3/2020
1.0.1 329 11/3/2020
1.0.0 367 11/3/2020
0.9.9 374 10/30/2020
0.9.8 316 10/30/2020
0.9.7 353 10/21/2020
0.9.6 358 10/21/2020
0.9.5 340 10/20/2020
0.9.4 355 10/20/2020
0.9.3 374 10/20/2020
0.9.2 396 10/19/2020
0.9.1 332 10/19/2020
0.9.0 347 10/19/2020

Custom Forms SDK based on native bindings of Ant Media Free WebRTC SDKs made by DreamTeam-Mobile

for Documentation, how to use this SDK, Tutorial and Xamarin samples go to https://github.com/DreamTeamMobile/Xamarin.AntMedia.Samples

native versions: