Re: [whatwg] Recorder audio and save to server

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 08:15:23 UTC