React hook for easily recording screen using MediaStream APIs.
npm install use-screen-recorder> React hook for easily recording screen using MediaStream APIs.
 
``bash`
yarn add use-screen-recorder
`tsx
import * as React from "react";
import useScreenRecorder from "use-screen-recorder";
const Example = () => {
const {
blobUrl,
pauseRecording,
resetRecording,
resumeRecording,
startRecording,
status,
stopRecording,
} = useScreenRecorder();
return (
Status: {status}
Props
$3
A boolean value indicating if audio track should be added.
`yaml
type: boolean
default: false
`$3
A
MediaRecorderOptions object.`yaml
type: object
default: {}
``MIT © ishan-chhabra
See the LICENSE file for more information
---
This hook is created using create-react-hook.