[whatwg] Audio canvas?

On Jul 16, 2008, at 4:39 AM, Fabien Meghazi wrote:

> On Wed, Jul 16, 2008 at 1:10 PM, Oliver Hunt <oliver at apple.com> wrote:
>>> Question: What do people think about making <audio> more like  
>>> <canvas> as
>>> sketched above?
>
> Well I guess it would be cool for writing canvas games, and necessary
> if support for microphone or webcam is added in html in the future.

I should note that i am not necessarily against the idea of an audio  
equivalent of the canvas element, i just don't believe such an API  
should be part of the <audio> element.

>> The <audio> (and <video>) tags on the other hand are effectively  
>> multimedia
>> equivalents to the <img> tag, in that their purpose is to display  
>> existing
>> remote content, rather than to create content on the client side.
>
> Correct me if I'm wrong but the <img> tag support the use of
> data:image/xxxx;base64 encoded content, so it's basically possible to
> display an image generated on client side. I guess it was not the
> intended purpose to do this at first, but afterall, html5 is all about
> extending web
That is correct, but it isn't really relevant.  The data URI scheme is  
entirely independent of the image (or any other element).  You can  
just as easily use a data URI for stylesheets, html, or even audio  
already :D

The point is that <img>, <audio>, and <video> are all designed to  
display fixed content.

--Oliver

>
> -- 
> Fabien Meghazi
>
> Website: http://www.amigrave.com
> Email: agr at amigrave.com
> IM: amigrave at gmail.com

Received on Wednesday, 16 July 2008 04:54:50 UTC