RTCMultiConnection Docs

RTCMultiConnection API Reference / "stopRecording"

You can use "stopRecording" method to stop audio/video recording.

How to stop recording?

// stop both audio and video
connection.streams['stream-id'].stopRecording(function (blob) {
    // POST both audio/video "Blobs" to PHP/other server using single FormData/XHR2
    // blob.audio  --- audio blob
    // blob.video  --- video blob
}, {audio:true, video:true} );

// stop only audio
connection.streams['stream-id'].stopRecording(function (blob) {
    // blob.audio  --- audio blob
}, 'audio' );

// stop only video
connection.streams['stream-id'].stopRecording(function (blob) {
    // blob.video  --- video blob
}, 'video' );

How to start recording?

// record both audio and video
connection.streams['stream-id'].startRecording({
    audio: true,
    video: true
});

// record only audio
connection.streams['stream-id'].startRecording('audio');

// record only video
connection.streams['stream-id'].startRecording('video');

Useful Links

  1. RecordRTC.js
  2. RecordRTC to Node.js
  3. RecordRTC to PHP
  4. RecordRTC to ASP.NET MVC
  5. RecordRTC & HTML-2-Canvas i.e. Canvas/HTML Recording!
  6. MRecordRTC i.e. Multi-RecordRTC!
  7. RecordRTC on Ruby!
  8. RecordRTC over Socket.io
  9. RecordRTC / PHP / FFmpeg
  10. Record Audio and upload to Nodejs server
  11. ffmpeg-asm.js and RecordRTC! Audio/Video Merging & Transcoding!

Want to ask a Question?

You can include your email for private conversation!

Latest Updates