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
<PackageReference Include="GkbApps.Blazor.MediaRecorder" Version="1.0.0" />
paket add GkbApps.Blazor.MediaRecorder --version 1.0.0
#r "nuget: GkbApps.Blazor.MediaRecorder, 1.0.0"
// 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 | Versions 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. |
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.0)
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,770 | 11/15/2023 |
1.0.0-alpha | 112 | 11/15/2023 |