Socket
Socket
Sign inDemoInstall

react-video-recordie

Package Overview
Dependencies
6
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-video-recordie

Video Recorder in React using MediaRecorder API


Version published
Weekly downloads
13
decreased by-83.75%
Maintainers
1
Install size
71.4 kB
Created
Weekly downloads
 

Readme

Source

react-video-recordie

Video Recorder in React using MediaRecorder API

NPM JavaScript Style Guide Netlify Status

Install

Install via npm

npm install react-video-recordie

or via yarn

yarn add react-video-recordie

Demo

Check out the Storybook for a demo.

Usage

import React, { Component } from 'react';

import { VideoRecordie } from 'react-video-recordie';

class Example extends Component {
  render() {
    return <VideoRecordie />;
  }
}

Options/Props

onRecordingStart

A callback function that will be invoked when recording begins

type: () => void

onRecordingComplete

A callback function that will be invoked when recording ends

type: (video: Blob, videoUrl: string) => void

onPlay

A callback function that will be invoked when the recorded video is played

type: () => void

onPause

A callback function that will be invoked when the recording is paused

type: () => void

onResume

A callback function that will be invoked when the paused recording is resumed

type: () => void

mimeType

The MIME media type required for your video, defaults to 'video/webm'

type: string

allowPlayback

A boolean to enable or disable the ability to replay the recorded video

type: boolean

allowDownload

A boolean to enable or disable the ability to download the recorded video

type: boolean

filename

The name of the downloaded file, defaults to 'videorecordie.webm'

type: string

timeslice

The number of milliseconds to record into each blob, defaults to 1000 milliseconds

type: number

License

MIT © krisravishankar

Keywords

FAQs

Last updated on 14 Jun 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc