Open Source Media Capture API and Components for Blazor
A Blazor Library for Interacting with Browser Media Streaming APIs
This Library allows you to record your browsers Camera / Screen Sharing Data and save it to a file or live stream it to a remote server.
Command Line
dotnet add package BlazorMedia
In your Component
@using BlazorMedia
<VideoMedia OnDataReceived="OnDataReceived" Timeslice="100" Width="640" Height="480" RecordAudio="true"></VideoMedia>
Code Behind
protected void OnDataReceived(byte[] data)
{
Console.WriteLine($"Data Recieved of length: {data.Length}");
}