On 2009-09-08, at 11:08, Raju Bitter wrote:

I love the idea of canvas.features - an intelligent way to add features which won't be available in all officially supported runtimes. The thing I'm mostly concerned about is that we stay with the lowest common denominator, which would be the feature set of SWF8/AS2 right now.

[Bug: the property on canvas is called `capabilities` not `features`. Error on my part.]

The point of canvas.features is to _not_ have to stay with the lowest common denominator. It allows us to gracefully add features and warn on platforms that are not supported, and it allows the LZX developer a way to decide how to deal with unsupported features in their application.

As a simple example, consider `lz.Audio.playSound`. Right now `canvas.capabilities.audio` is false for DHTML and will give a debug warning if you call `playSound` on DHTML, but we could improve that to use HTML 5 audio when the platform supports it. Since this is a pretty straight-forward extension of an existing API, maybe that is a good place to start experimenting?

Reply via email to