- From: Ashley Gullen <ashley@scirra.com>
- Date: Tue, 7 Apr 2015 12:40:29 +0100
- To: Narendra Sisodiya <narendra@narendrasisodiya.com>
- Cc: whatwg <whatwg@lists.whatwg.org>, Robert O'Callahan <robert@ocallahan.org>
I've brought this up on other lists, but I think it's worth bringing up again here: it's a significant limitation in MediaRecorder that it can only work in real-time. If a user has a pre-recorded WAV file which is one hour long and they want to upload that or encode it to a different format, MediaRecorder requires that the encoding happen in real-time. So the user has to sit there and wait for an hour when it could be seconds to minutes if it could work faster. So I think there are still important use cases for uploading audio that MediaRecorder doesn't cover. My preferred solution would be to allow MediaRecorder to accept an AudioBuffer instead of a MediaStream, and in this case allow it to encode as fast as possible. Ashley On 7 April 2015 at 09:14, Narendra Sisodiya <narendra@narendrasisodiya.com> wrote: > Hi Rob, > I have downloaded the blob and checked, yes, it is Ogg data. So Firefox > MediaRecorder API is excellent. > https://wiki.mozilla.org/Gecko:MediaRecorder - Diagram include all the > codec which we are talking about. > Finally, My second problem was also solved by API itself. > > > http://w3c.github.io/mediacapture-record/MediaRecorder.html#widl-MediaRecorder-start-void-long-timeslice > > start Method accept timeslice as parameter. So when I provided timeslice > parameter, like 2000, I was getting blob using dataavailable event. > > Fantastic ! Back to coding. I will use MediaRecorder API and will wait for > the chrome to solve the bug - > https://code.google.com/p/chromium/issues/detail?id=262211 > > > > > 2015-04-07 11:30 GMT+05:30 Narendra Sisodiya < > narendra@narendrasisodiya.com> > : > > > Thanks, I am checking all these. > > > > @ Rob, > > I have seen MediaRecorder API, yesterday. It is the API for the exact > > same purpose I want but I have two unanswered question regrading API. > > > > 1) No where, they have mentioned about the encoding format. I have tested > > working demo but still still unable to figure about its encoding format. > > Probably I will try to download blob and check. > > 2) I think, MediaRecorder API like this, Start Recoding, wait, Stop > > recording, then get the encoded blob. > > This is suitable for small duration audio recording. I want recording for > > long duration like 1 hour. Encoding at the end of the lecture will hang > my > > CPU and take long time to upload whole blob. > > What I want, every 2 or 5 second, I should get encoded blob for that much > > duration and I will send that small encoded blob using websocket. So its > > like continuous encoding and transmitting to server. > > > > > > > > 2015-04-07 9:50 GMT+05:30 Robert O'Callahan <robert@ocallahan.org>: > > > >> On Sat, Apr 4, 2015 at 9:28 PM, Narendra Sisodiya < > >> narendra@narendrasisodiya.com> wrote: > >> > >>> Hi, > >>> I am trying to do simple audio recording service. > >>> with help of navigator.getUserMedia, I am able to record audio in wav > >>> format. > >>> > >> > >> MediaRecorder is designed for exactly this. > >> https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder_API > >> > >> Rob > >> -- > >> oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo > >> owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo > >> osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo > >> owohooo > >> osoaoyoso otooo oao oboroootohoeoro oooro osoiosotoeoro,o > o‘oRoaocoao,o’o > >> oioso > >> oaonosowoeoroaoboloeo otooo otohoeo ocooouoroto.o oAonodo oaonoyooonoeo > >> owohooo > >> osoaoyoso,o o‘oYooouo ofooooolo!o’o owoiololo oboeo oiono odoaonogoeoro > >> ooofo > >> otohoeo ofoioroeo ooofo ohoeololo. > >> > > > > > > > > -- > > > > *Narendra SisodiyaUI Architect @ *Unicommerce < > http://www.unicommerce.com> > > Delhi - Bharat > > > > > > -- > > *Narendra SisodiyaUI Architect @ *Unicommerce <http://www.unicommerce.com> > Delhi - Bharat >
Received on Tuesday, 7 April 2015 11:40:57 UTC