Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

RecordRTC

> 开发工具
Open source

RecordRTC is WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Pl

6.9K stars0 likes2 views
WebsiteGitHub

About

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.js | Live Demo

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:

javascript
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:

javascript
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);
    });
});
  • Watch a YouTube video presentation/tutorial

Browsers Support

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

Codecs Support

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

CDN

xml

<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>

Configuration

…

MediaStream parameter

MediaStream parameter accepts following values:

javascript
let recorder = RecordRTC(MediaStream || HTMLCanvasElement || HTMLVideoElement || HTMLElement, {});

API

…

Please check documentation here: https://recordrtc.org/

Global APIs

…

How to fix echo issues?

  1. Set <video>.muted=true and <video>.volume=0
  2. Pass audio: {echoCancellation:true} on getUserMedia

Wiki

  • https://github.com/muaz-khan/RecordRTC/wiki

Releases

  • https://github.com/muaz-khan/RecordRTC/releases

Unit Tests

  • https://travis-ci.org/muaz-khan/RecordRTC

Issues/Questions?

  • Github: https://github.com/muaz-khan/RecordRTC/issues
  • Disqus: https://www.webrtc-experiment.com/RecordRTC/#ask
  • Stackoverflow: http://stackoverflow.com/questions/tagged/recordrtc
  • Email: muazkh => gmail

Credits

Library Usage
Recorderjs StereoAudioRecorder
webm-wasm WebAssemblyRecorder
jsGif GifRecorder
whammy WhammyRecorder

Spec & Reference

  1. MediaRecorder API
  2. Web Audio API
  3. Canvas2D
  4. Media Capture and Streams

Who is using RecordRTC?

Framework Github Article
Angular2 github article
React.js github article
Video.js github None
Meteor github None

License

RecordRTC.js is released under MIT license . Copyright (c) Muaz Khan.

Issues· 442 open

View all issuesOpen on GitHub
  • #798

    ESM Build?

    Updated Feb 2, 2026
  • #785

    Issue with the sound in Safari with Headsets when recording the audio

    Updated Jan 7, 2026
  • #891

    Is there an updated version with refreshed dependencies?

    Updated Dec 31, 2025
  • #890

    When the startRecording method is called, the video will freeze for a moment

    Updated Oct 30, 2025
  • #889

    getSeekableBlob broken on Chrome ≥136 (Windows) when using RecordRTC v5.6.2

    Updated Sep 16, 2025
  • #752

    Can't get last timeSlice blob from a streamed wav file

    Updated Jul 24, 2025
  • #888

    Bug Report: Front Camera Video Rotation Issue in iOS 18.4

    Updated May 12, 2025
  • #887

    Can this directly livestream my camera/desktop to youtube?

    Updated Feb 26, 2025
  • #885

    Possible to restart capturing the same window?

    Updated Feb 20, 2025
  • #874

    When you click record, the video freezes for 1 to 2 seconds

    Updated Feb 14, 2025

> Tags

JavaScriptmediarecordermediarecorder-apimediastreamrecorderrecord-audio

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 23, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具