Files
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00
..
2026-11-17 16:15:01 -05:00
2026-11-17 16:15:01 -05:00
2026-11-17 16:15:01 -05:00

Audio+Video Recording using MediaRecorder / Demo

Only audio-relevant parts are supported in the moment. Audio+Video recording coming soon.

Support? Current/Latest Firefox Nightly (ONLY). Understood? Download from: http://nightly.mozilla.org/

=

RecordRTC

Try RecordRTC which is preferred.

=

How to use AudioVideoRecorder?
<script src="https://www.webrtc-experiment.com/AudioVideoRecorder.js"></script>

=

How to record audio?
AudioVideoRecorder({

    // MediaStream object
    stream: MediaStream,

    // mime-type of the output blob
    mimeType: 'audio/ogg',

    // set time-interval to get the blob
    interval: 5000,

    // get access to the recorded blob
    onRecordedMedia: function (blob) {
        // POST/PUT blob using FormData/XMLHttpRequest

        // or readAsDataURL
        var reader = new FileReader();
        reader.onload = function (e) {
            hyperlink.href = e.target.result;
        };
        reader.readAsDataURL(blob);
    }

});

=

Browser Support

AudioVideoRecorder.js works fine on following web-browsers:

Browser Support
Firefox Nightly

=

License

AudioVideoRecorder.js is released under MIT licence . Copyright (c) 2013 Muaz Khan.