RecordRTC is WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Pl
RecordRTC is WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Pl
WebRTC JavaScript Library for Audio+Video+Screen+Canvas (2D+3D animation) Recording
Chrome Extension or Dozens of Simple-Demos and it is Open-Sourced and has API documentation
A demo using promises:
let stream = await navigator.mediaDevices.getUserMedia({video: true, audio: true});
let recorder = new RecordRTCPromisesHandler(stream, {
type: 'video'
});
recorder.startRecording();
const sleep = m => new Promise(r => setTimeout(r, m));
await sleep(3000);
await recorder.stopRecording();
let blob = await recorder.getBlob();
invokeSaveAsDialog(blob);A demo using normal coding:
navigator.mediaDevices.getUserMedia({
video: true,
audio: true
}).then(async function(stream) {
let recorder = RecordRTC(stream, {
type: 'video'
});
recorder.startRecording();
const sleep = m => new Promise(r => setTimeout(r, m));
await sleep(3000);
recorder.stopRecording(function() {
let blob = recorder.getBlob();
invokeSaveAsDialog(blob);
});
});| Browser | Operating System | Features |
|---|---|---|
| Google Chrome | Windows + macOS + Ubuntu + Android | audio + video + screen |
| Firefox | Windows + macOS + Ubuntu + Android | audio + video + screen |
| Opera | Windows + macOS + Ubuntu + Android | audio + video + screen |
| Edge (new) | Windows (7 or 8 or 10) and MacOSX | audio + video + screen |
| Safari | macOS + iOS (iPhone/iPad) | audio + video |
| Browser | Video | Audio |
|---|---|---|
| Chrome | VP8, VP9, H264, MKV | OPUS/VORBIS, PCM |
| Opera | VP8, VP9, H264, MKV | OPUS/VORBIS, PCM |
| Firefox | VP8, H264 | OPUS/VORBIS, PCM |
| Safari | VP8 | OPUS/VORBIS, PCM |
| Edge (new) | VP8, VP9, H264, MKV | OPUS/VORBIS, PCM |
<script src="https://www.WebRTC-Experiment.com/RecordRTC.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/RecordRTC/5.6.2/RecordRTC.js"></script>
<script src="node_modules/recordrtc/RecordRTC.js"></script>
<script src="bower_components/recordrtc/RecordRTC.js"></script>…MediaStream parameter accepts following values:
let recorder = RecordRTC(MediaStream || HTMLCanvasElement || HTMLVideoElement || HTMLElement, {});…Please check documentation here: https://recordrtc.org/
…<video>.muted=true and <video>.volume=0audio: {echoCancellation:true} on getUserMediamuazkh => gmail| Library | Usage |
|---|---|
| Recorderjs | StereoAudioRecorder |
| webm-wasm | WebAssemblyRecorder |
| jsGif | GifRecorder |
| whammy | WhammyRecorder |
| Framework | Github | Article |
|---|---|---|
| Angular2 | github | article |
| React.js | github | article |
| Video.js | github | None |
| Meteor | github | None |
RecordRTC.js is released under MIT license . Copyright (c) Muaz Khan.
ESM Build?
Issue with the sound in Safari with Headsets when recording the audio
Is there an updated version with refreshed dependencies?
When the startRecording method is called, the video will freeze for a moment
getSeekableBlob broken on Chrome ≥136 (Windows) when using RecordRTC v5.6.2
Can't get last timeSlice blob from a streamed wav file
Bug Report: Front Camera Video Rotation Issue in iOS 18.4
Can this directly livestream my camera/desktop to youtube?
Possible to restart capturing the same window?
When you click record, the video freezes for 1 to 2 seconds