Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.12 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.12 KB

Build Status Nuget

BlazorMedia

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.

Architecture

How to use

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}");
}