0.1.4 • Published 9 years ago
chrome-recorder v0.1.4
chrome-recorder
Lets you easily record audio and video in Chrome
This project is a refactored and wrapped version of the amazing work done on the msr project)(https://github.com/streamproc/MediaStreamRecorder).
npm install chrome-recorder
API
import Recorder from 'chrome-recorder';
const video = document.querySelector('#video');
const recorder = new Recorder(video);
// Start recording
recorder.record();
// Stop recording
recorder.stop();
// Play recording
recorder.play();
// Seek
recorder.seek(ms);
// Pause recording
recorder.pause();
// Get recording blobs (audio and video)
recorder.getBlobs(); // {audio Blob, video: Blob}
// Set blobs
recorder.setBlobs({
audio: Blob,
video: Blob
})
Test
npm install
npm start
- localhost:8080