An open API service indexing awesome lists of open source software.

https://github.com/yei-linux/usescreerecording-yl

Hook for recording an specific element on screen.
https://github.com/yei-linux/usescreerecording-yl

react typescript

Last synced: about 1 month ago
JSON representation

Hook for recording an specific element on screen.

Awesome Lists containing this project

README

          



Logo project






useScreenRecording-yl



Hook for recording an specific element on screen


---

**Content**

* [Features](##features)
* [Install](##install)
* [Usage](##usage)
* [Exemples](##exemples)
* [Documentation](##documentation)
* [API](##Api)
* [Contributing](##contributing)
* [Maintainers](##maintainers)

## Features ✨
* Easy to use.
* Continuously Maintained.

## Install 🐙
You can install useRecording-yl by entering this command.
Click here for npm repository

```
npm i use-screen-recording-yl
```

## Usage 💡
This package is for recording element on screen and it will generate blob video and url video of recording.

## Exemples 🖍
```
const refContainer: any = useRef();
const {
urlVideoState,
blobVideoState,
ScreenRecording,
handleStartRecording,
handleStopRecording,
} = useScreenRecording();
...
const handleClickStart = () => {
setVisible(false);
handleStartRecording(
refContainer.current.getBoundingClientRect().x,
refContainer.current.getBoundingClientRect().y,
refContainer.current.getBoundingClientRect().width,
refContainer.current.getBoundingClientRect().height,
0, //By Default is 0
0, //By Default is 0
500,//By Default is 1500
500 //By Default is 500
);
};

const handleClickStop = () => {
handleStopRecording();
};
...
return (



Image for testing



Start Recording
Stop Recording
Show Video
...

);
```

## Contributing 🍰
Please make sure to read the [Contributing Guide]() before making a pull request.

Thank you to all the people who already contributed to this project!

## Maintainers 👷


Yei Linux
Yei Linux

💻

## License ⚖️
Enter what kind of license you're using.

---