Socket
Socket
Sign inDemoInstall

use-media-recorder

Package Overview
Dependencies
4
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    use-media-recorder

MediaRecorder API using React hooks.


Version published
Weekly downloads
4
decreased by-55.56%
Maintainers
1
Install size
15.2 kB
Created
Weekly downloads
 

Readme

Source

npm version

useMediaRecorder

MediaRecorder API using React hooks.

Table of Contents

Getting started

npm install --save use-media-recorder

  • Supports both video + audio and audio only recordings.
  • Currently it generates video/webm and audio/webm.

Usage

Video and audio

import { useMediaRecorder } from 'use-media-recorder'
const [isRecording, setIsRecording] = useState(false)
const [setCaptureRef, data, err] = useMediaRecorder({ isRecording })

Audio only

import { useMediaRecorder } from 'use-media-recorder'
const [isRecording, setIsRecording] = useState(false)
const [setCaptureRef, data, err] = useMediaRecorder({ isRecording, audioOnly: true })

Full example can be found here

Demo

git clone git@github.com:jagonzalr/useMediaRecorder.git
cd useMediaRecorder
npm intall
npm start

License

useMediaRecorder is MIT licensed.

Keywords

FAQs

Last updated on 05 Mar 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