Installations
npm install react-video-recorder-custom
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
14.19.0
NPM Version
8.5.0
Score
41.2
Supply Chain
89.3
Quality
74.3
Maintenance
100
Vulnerability
98.1
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (99.85%)
HTML (0.15%)
Developer
akbaruddin
Download Statistics
Total Downloads
2,014
Last Day
1
Last Week
17
Last Month
20
Last Year
244
GitHub Statistics
163 Commits
1 Watching
2 Branches
1 Contributors
Package Meta Information
Latest Version
0.0.60
Package Id
react-video-recorder-custom@0.0.60
Unpacked Size
94.39 kB
Size
20.18 kB
File Count
21
NPM Version
8.5.0
Node Version
14.19.0
Total Downloads
Cumulative downloads
Total Downloads
2,014
Last day
0%
1
Compared to previous day
Last week
1,600%
17
Compared to previous week
Last month
233.3%
20
Compared to previous month
Last year
-48.6%
244
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
3
Peer Dependencies
4
Dev Dependencies
42
react-video-recorder-custom
Installation
1yarn add react-video-recorder-custom 2 3# Note: this project has react, react-dom, prop-types & styled-components as peerDependencies, 4# so if you're starting from scratch run this instead: 5yarn add react-video-recorder-custom react react-dom prop-types styled-components
Usage
Basic usage:
1import React from 'react' 2import { render } from 'react-dom' 3import VideoRecorder from 'react-video-recorder-custom' 4 5const App = () => ( 6 <VideoRecorder 7 onRecordingComplete={(videoBlob) => { 8 // Do something with the video... 9 console.log('videoBlob', videoBlob) 10 }} 11 /> 12) 13 14render(<App />, document.getElementById('root'))
Note: if you click the "Show info" button in the top-right corner, you should be able to see a table with the supported prop-types.
Modifying the UI
All the UI can be customized by passing the following props:
renderDisconnectedView
View that's rendered before the user enables the camera access.
Default value: () => <DisconnectedView />
See <DisconnectedView />
source here.
renderLoadingView
View that's rendered while the camera is initializing.
() => <LoadingView />
See <LoadingView />
source here.
renderVideoInputView
View that's rendered when the browser does not support inline recording but allows opening the native camera (mainly iOS).
Default value: ({ videoInput }) => <Fragment>{videoInput}</Fragment/>
renderUnsupportedView
View that's rendered when the browser does not support recording video.
Default value: () => <UnsupportedView />
See <UnsupportedView />
source here.
renderErrorView
View that's rendered an unexpected error occurs.
Default value: () => <ErrorView />
See <ErrorView />
source here.
renderActions
Overlay that's rendered on top of the views and that contains the elements like the buttons, the timer or the countdown.
See the default implementation here.
Title Messages on Button
Record Screen
- Record Button: PRESS REC WHEN READY
Stop Screen
- Stop Button: STOP BUTTON
Video Test and Check Screen
- Record another Button: RECORD ANOTHER
- Play Button(If Stopped): PLAY VIDEO
- Pause Button(If Playing): PAUSE VIDEO
Development
Requirements
node version ">=8.3"
Install packages
1yarn install
Run the storybook demo
1yarn start
With help of react-video-recorder package
No vulnerabilities found.
No security vulnerabilities found.