... source element (description) ...

Lachlan Hunt wrote in
'Re: SURVEY: Accept requirement for immediate mode graphics a la canvas 
element?':

>Dr. Olaf Hoffmann wrote:
>> The source element seems to be an interesting approach too; in 
>> SMIL and SVG there is a switch element for a more general
>> approach for conditional processing. I think, currently for source
>> it is not clearly described, which source is choosen - but maybe I
>> did not see it yet.
>
>That's defined in the algorithm to pick a media resource.
>
>http://www.whatwg.org/specs/web-apps/current-work/multipage/section-video.html#pick-a

Yes, that is similar to a switch, somehow a little bit simpler and a little 
bit less flexible. Sometimes maybe the size or the default 'noise-level' 
of the  video may change with a different format, this may cause some 
minor problems, for example how to set width and height and for 
alternative formats?

Interesting, that the source behaviour is described in the draft before the
source element itself is defined - maybe a hint for a bad document structure,
not sure about it.
If it is intended, that 'normal' readers can understand the draft, I think 
it is important to have a good document structure (I had already a similar
discussion about the current SMIL draft ;o) - but this is sometimes not a
really easy task.

Received on Friday, 30 November 2007 18:23:27 UTC