[whatwg] single step v.play();

Biju bijumaillist at gmail.com
Sat Apr 18 01:21:44 PDT 2009


if a video element is already playing/loaded video from URL
http://mysite.com/aaaaa.ogg
and if we want play another file http://mysite.com/bbbbb.ogg
we should do following JS code

     v = $('v1');
     v.src = "http://mysite.com/bbbbb.ogg";
     v.load();
     v.play();

Why cant it be as simple as

   v = $('v1');
   v.play("http://mysite.com/bbbbb.ogg");

Similarly for load
   v = $('v1');
   v.load("http://mysite.com/bbbbb.ogg");

TIA
-- 
Stop SPAM, dont give out emailids on any websites.


More information about the whatwg mailing list