1.0.5 • Published 10 months ago

screen-recording v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
10 months ago

Screen recording

Description

Simple js library for screen recording and saving it in webm format

Install

npm

npm install screen-recording

yarn

yarn add screen-recording

Usage

  import { ScreenRecording } from 'screen-recording';

  const recording = ScreenRecording({
    processVideo: (blob: Blob) => void, // *Required (what to do with with video recorded),
    onEnded: (e: Event) => void, // Optional action which happens when you click on stop sharing popup
    processChunks: (chunk) => void, // Optional action which happens when chunk data is available.
    resetChunks: boolean, // Optional if you want to clean chunks after recording is stopped (then put true, default false)
    interval: number // Optional time interval for chunk creating (default 5sec)
  });

  // Start recording
  recording.startRecording();
  // Stop recording
  recording.stopRecording();
  // Check is recording in progress
  recording.getRecordingInProgress();
1.0.2

10 months ago

1.0.0

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.1

5 years ago