A Razor component that lets us record screen, camera, and mic audio.
install-package GkbApps.Blazor.MediaRecorder
@using GkbApps.Blazor.MediaRecorder
@using GkbApps.Blazor.MediaRecorder.Enums
At the top of the page/component where you are using BlazorMediaRecorder, specify the render mode
@rendermode InteractiveServer
@rendermode InteractiveWebAssembly
@rendermode InteractiveAuto
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>
Simply use the component and pass any parameters (see below).
<BlazorMediaRecorder Options="RecorderOptions.Screen">
</BlazorMediaRecorder>
<BlazorMediaRecorder Options="RecorderOptions.ScreenAndMicAudio">
</BlazorMediaRecorder>
<BlazorMediaRecorder Options="RecorderOptions.Camera">
</BlazorMediaRecorder>
<BlazorMediaRecorder Options="RecorderOptions.CameraAndMicAudio">
</BlazorMediaRecorder>
<BlazorMediaRecorder Options="RecorderOptions.MicAudio">
</BlazorMediaRecorder>