Every developer who has tried implementing WebRTC peer-to-peer video calls knows the struggle — signaling, permissions, media streams, connection states… it gets messy.
You start with PeerJS add STUN servers do signaling and all those messed up stuff..
What starts as "just a feature" quickly becomes an entire subsystem.
That's exactly why I created Plugin.Maui.PeerVideoCall .
This is a package that wraps a modified system WebView with extended functions into a simple easy to use Content View that you can add any where in your xaml. The WebView loads an html which does all the work PeerJS Connections, STUN management, etc. and exposes the main functions that you actually need making life easier..
With just 3–4 lines of implementation code, you can add fully functional peer-to-peer video calling to your .NET MAUI app.
Clean. Minimal. Powerful.
Let's get straight into this!
FIRST STEPS:
First things first, open Visual Studio 2026 and create a new project.

Let's just give it a name, call it "VideoCall".

Now Open MainPage.xaml. And clear all the default code in it.

We'll now do the basic stuff like checking camera and mic permissions and then allowing the user to make video calls.
For that, add the following code to a Layout in MainPage.xaml
<Button x:Name="Chk_Permit" Text="Check Permissions" Clicked="Chk_Permit_Clicked"/>
<Label x:Name="Status_Label" TextColor="Red" FontAttributes="Bold" FontSize="Header" />
<Button x:Name="Caller_Btn" Text="Video Call" Clicked="Caller_Btn_Clicked" IsEnabled="False"/>Chk_Permit -> This button will Check if cam and mic permissions already exists, if not it asks for permission
Status_Label -> We use this to inform the user about the permissions.
Caller_Btn -> This Button takes us to the actual call page once all the permissions have been verified.
Now, we'll need to open the code behind and add functions to these buttons.
Add the following code to MainPage.xaml.cs
private async void Chk_Permit_Clicked(object sender, EventArgs e)
{
var camstatus = await Permissions.CheckStatusAsync<Permissions.Camera>();
var micstatus = await Permissions.CheckStatusAsync<Permissions.Microphone>();
if (camstatus != PermissionStatus.Granted || micstatus != PermissionStatus.Granted)
{
await Permissions.RequestAsync<Permissions.Camera>();
await Permissions.RequestAsync<Permissions.Microphone>();
var newcamstatus = await Permissions.CheckStatusAsync<Permissions.Camera>();
var newmicstatus = await Permissions.CheckStatusAsync<Permissions.Microphone>();
if (newcamstatus != PermissionStatus.Granted || newmicstatus != PermissionStatus.Granted)
{
Status_Label.Text = "Permissions not granted...";
}
else
{
Status_Label.Text = "Permissions granted...";
Caller_Btn.IsEnabled = true;
}
}
else
{
Status_Label.Text = "Permissions already granted...";
Caller_Btn.IsEnabled = true;
}
}
private void Caller_Btn_Clicked(object sender, EventArgs e)
{
Navigation.PushAsync(new CallPage());
}Now we've configured our app to let users check if the app has got permissions to access camera and microphone on the device.
Now, we'll go ahead and setup the permissions for each platform.
PERMISSIONS SETUP
ANDROID:
Let's start by opening AndroidManifest.xml

Add the following lines to <manifest>
<uses-feature android:name="android.hardware.camera"/>
<uses-feature android:name="android.hardware.camera.autofocus"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />







Join the conversation! Your thoughts help the community grow.