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/
=
Try RecordRTC which is preferred.
=
<script src="https://www.webrtc-experiment.com/AudioVideoRecorder.js"></script>
=
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);
}
});
=
AudioVideoRecorder.js works fine on following web-browsers:
Browser | Support |
---|---|
Firefox | Nightly |
=
AudioVideoRecorder.js is released under MIT licence . Copyright (c) 2013 Muaz Khan.