react-native-video-recorder

0.2.0 • Public • Published

React Native Video Recorder

This is a very experimental module, you probably don't want to use it. Take a look at https://github.com/lwansbrough/react-native-camera

This is a video recorder component using the Camera 2 API. It currently does not support the older API so only devices with Android Lollipop or higher are supported.

import VideoRecorder from 'react-native-video-recorder';

<VideoRecorder
  ref="recorder"
  onRecordingStarted={() => console.log('Started')}
  onRecordingFinished={(e) => console.log(e.nativeEvent.file)}
  onCameraAccessException={() => alert('No permission for camera')}
  onCameraFailed={() => alert('Camera failed')}
  type="front"
  videoEncodingBitrate={7000000}
  videoEncodingFrameRate={30}
/>

this.refs.recorder.record();
this.refs.recorder.stop();

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-video-recorder

Weekly Downloads

3

Version

0.2.0

License

MIT

Last publish

Collaborators

  • cornedor