diff --git a/MRecordRTC/README.md b/MRecordRTC/README.md index ac08f17a..76d6cb0a 100644 --- a/MRecordRTC/README.md +++ b/MRecordRTC/README.md @@ -23,6 +23,12 @@ recorder.mediaType = { video: true, // or WhammyRecorder gif: true // or GifRecorder }; +// mimeType is optional and should be set only in advance cases. +recorder.mimeType = { + audio: 'audio/wav', + video: 'video/webm', + gif: 'image/gif' +}; recorder.startRecording(); recorder.stopRecording(function(url, type) { document.querySelector(type).src = url; @@ -81,6 +87,19 @@ recorder.mediaType = { = +#### `mimeType` + +```javascript +// mimeType is optional and should be set only in advance cases. +recorder.mimeType = { + audio: 'audio/wav', // audio/ogg or audio/webm or audio/wav + video: 'video/webm', // video/webm or video/vp8 + gif: 'image/gif' +}; +``` + += + #### `getDataURL` ```javascript @@ -196,18 +215,6 @@ recorder.video = recorder.canvas = { = -[RecordRTC](https://www.webrtc-experiment.com/RecordRTC/) is a server-less (entire client-side) JavaScript library can be used to record WebRTC audio/video media streams. It supports cross-browser audio/video recording. - -1. [RecordRTC to Node.js](https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC/RecordRTC-to-Nodejs) -2. [RecordRTC to PHP](https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC/RecordRTC-to-PHP) -3. [RecordRTC to ASP.NET MVC](https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC/RecordRTC-to-ASPNETMVC) -4. [RecordRTC & HTML-2-Canvas i.e. Canvas/HTML Recording!](https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC/Canvas-Recording) -5. [MRecordRTC i.e. Multi-RecordRTC!](https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC/MRecordRTC) -6. [RecordRTC on Ruby!](https://github.com/cbetta/record-rtc-experiment) -7. [RecordRTC over Socket.io](https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC/RecordRTC-over-Socketio) - -= - ## License -[RecordRTC.js](https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC) is released under [MIT licence](https://www.webrtc-experiment.com/licence/) . Copyright (c) [Muaz Khan](https://plus.google.com/+MuazKhan). +[RecordRTC.js](https://github.com/muaz-khan/RecordRTC) is released under [MIT licence](https://www.webrtc-experiment.com/licence/) . Copyright (c) [Muaz Khan](https://www.MuazKhan.com/). diff --git a/MRecordRTC/index.html b/MRecordRTC/index.html index f0056c6b..76fff8c5 100644 --- a/MRecordRTC/index.html +++ b/MRecordRTC/index.html @@ -194,7 +194,7 @@