I want to record the videos through my webcam and want to upload them to the server. I don't want to use any plugin. How can I atleast just record the videos.
In order to record audio or video using your React application, you will have to get the user's permission. And our recordrtc library makes it easy. Just create a function to get the permission and initialize an instance of the recorder. We can even make this a re-usable hook.
Bring it up with Command+Shift+5, select the area or app you want to record, and switch to record mode by clicking “Record Selected Portion” on the right of the menu. Click the record button to start capturing a video.
There's a project on GitHub called RecordRTC. It also provides a live demo here. This tool could run on browsers supporting WebRTC and getUserMedia. It could record both audio and video.
However, according to data from Can I Use, currently WebRTC and getUserMedia are only supported by Firefox, Chrome, and other blink engine browsers.
Use the navigator.getUserMedia function.
Check out these url`s. Capturing Audio & Video
Have a look here
That being said, this question has been asked several times before:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With