Re: Describing recording by means of the Media Source interface

Harald Alvestrand wrote:
> On 08/23/2012 06:52 PM, Josh Soref wrote:
>> Rich wrote:
>>> How is this not possible with the following existing pipeline:
>>>
>>> MediaStream -> HTMLAudioElement -> Web Audio API [1] -> WebSockets ->
>>> ASR Service
>> Technically, I think you can do something similar for video:
>>
>> MediaStream -> HTMLVideoElement -> HTMLCanvas.drawImage() ->
>> HTMLCanvas.toDataURL()
> at 30 FPS?
>
> The result would be akin to a Motion JPEG, only in PNG, I think...

But that's the use case being requested in the Media Recording API too, 
right? Except that you can't control how much data you get of how many 
samples you take of the video per second.

You can pull data from the canvas at whatever interval you like, less 
than 30 times per second typically. You can also sample more or less 
frequently depending on performance of course.

Received on Thursday, 23 August 2012 17:10:42 UTC