W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

Re: [whatwg] <source> media attribute behavior, static or dynamic ?

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 10 May 2012 21:19:38 +0000 (UTC)
To: Paul Adenot <padenot+whatwg@mozilla.com>
Message-ID: <Pine.LNX.4.64.1205102117480.9926@ps20323.dreamhostps.com>
Cc: whatwg@whatwg.org
On Thu, 10 May 2012, Paul Adenot wrote:
> The spec [1] says :
> > Dynamically modifying a source element and its attribute when the
> > element is already inserted in a video or audio element will have no
> > effect. To change what is playing, just use the src attribute on the
> > media element directly, possibly making use of the canPlayType()
> > method to pick from amongst available resources. Generally,
> > manipulating source elements manually after the document has been
> > parsed is an unncessarily complicated approach.
> which seems to indicate that the <source> element are only used at load 
> time. Since |canPlayType()| is mentioned, |matchMedia()| is possibly the 
> right approach here, but it is unclear to us what the spec exactly 
> requires. We think the spec needs clarification here.

As far as I can tell, the behaviour here is strictly and unambiguously 
defined, leaving only one possible interpretation, so it's not clear to me 
how to make it less ambiguous. Could you elaborate on what interpretations 
of the spec you think are possible?

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 10 May 2012 21:20:57 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:42 UTC