W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2009

[whatwg] single step v.play();

From: Philip Jägenstedt <philipj@opera.com>
Date: Mon, 20 Apr 2009 13:01:19 +0200
Message-ID: <op.usol8hz8atwj1d@sisko.linkoping.osa>
On Mon, 20 Apr 2009 10:14:14 +0200, Biju <bijumaillist at gmail.com> wrote:

> On Mon, Apr 20, 2009 at 9:37 AM, Philip J?genstedt <philipj at opera.com>  
> wrote:
>> Since static markup uses the src attribute it needs to be supported via  
>> the
>> DOM, so adding a parameter to load/play would only mean that there are
>> several ways to do the same thing. I'm not sure replacing an already  
>> playing
>> media resource is an important enough use case to make such a change to  
>> an
>> already complex spec.
> I did not mean to remove option for assigning to .src property. Like
>     v = $('v1');
>     v.src = "http://mysite.com/bbbbb.ogg";
> and then at a later time user may do
>     v.play();
> if he want to play it.
> Asked for two signature for
>     v.play() and    v.load()
> one with the URL as parameter,  and other without parameter

That was clear, I'm just saying that it complicates the spec for an
untypical use case (changing the media resource of an already playing
element). Given the already ridiculous complexity of media element's
loading behavior I'm not sure adding more equivalent syntax will help

> As well as an implicit call to v.load() in v.play()

The spec used to have an implicit call to load() from play(), but that has
been replaced with "invoke the media element's resource selection

> This will make web developers work easier. ie, the js code will become
> 1/3 most time for the same operation.
> Thanks

Philip J?genstedt
Opera Software
Received on Monday, 20 April 2009 04:01:19 UTC

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