GkbApps.Blazor.MediaRecorder 1.0.0

dotnet add package GkbApps.Blazor.MediaRecorder --version 1.0.0                
NuGet\Install-Package GkbApps.Blazor.MediaRecorder -Version 1.0.0                
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="GkbApps.Blazor.MediaRecorder" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GkbApps.Blazor.MediaRecorder --version 1.0.0                
#r "nuget: GkbApps.Blazor.MediaRecorder, 1.0.0"                
#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.
// Install GkbApps.Blazor.MediaRecorder as a Cake Addin
#addin nuget:?package=GkbApps.Blazor.MediaRecorder&version=1.0.0

// Install GkbApps.Blazor.MediaRecorder as a Cake Tool
#tool nuget:?package=GkbApps.Blazor.MediaRecorder&version=1.0.0                

Blazor Media Recorder

A Razor component that lets us record screen, camera, and mic audio.

Installation

install-package GkbApps.Blazor.MediaRecorder

Include the following namespaces in _Imports.razor

@using GkbApps.Blazor.MediaRecorder
@using GkbApps.Blazor.MediaRecorder.Enums

Usage (.NET 8 and above)

Apply a render mode to a component definition

At the top of the page/component where you are using BlazorMediaRecorder, specify the render mode

For Interactive Server mode, the page/component must be in the Server project.
@rendermode InteractiveServer
For Interactive WebAssembly mode, the page/component must be in the Client project.
@rendermode InteractiveWebAssembly
For Interactive Auto mode, the page/component must be in the Client project.
@rendermode InteractiveAuto

Alternatively, apply a render mode to a component instance

The following example sets the component's render mode to InteractiveServer. In a similar manner, you can set the render mode to InteractiveWebAssembly or InteractiveAuto. Just make sure that the component is present in the Client project for the InteractiveWebAssembly and InteractiveAuto render modes.

  <BlazorMediaRecorder @rendermode="InteractiveServer"
                       Options="RecorderOptions.ScreenAndMicAudio">
    </BlazorMediaRecorder>

Usage (.NET 7 and earlier versions)

Simply use the component and pass any parameters (see below).

Record media

To record screen only
  <BlazorMediaRecorder Options="RecorderOptions.Screen">
    </BlazorMediaRecorder>
To record screen and mic audio
  <BlazorMediaRecorder Options="RecorderOptions.ScreenAndMicAudio">
    </BlazorMediaRecorder>
To record camera only
  <BlazorMediaRecorder Options="RecorderOptions.Camera">
    </BlazorMediaRecorder>
To record camera and mic audio
  <BlazorMediaRecorder Options="RecorderOptions.CameraAndMicAudio">
    </BlazorMediaRecorder>
To record mic audio only
  <BlazorMediaRecorder Options="RecorderOptions.MicAudio">
    </BlazorMediaRecorder>
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
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.0.0 1,767 11/15/2023
1.0.0-alpha 111 11/15/2023