News for hackers. Stuff that matters.
Re:Nissan Leaf by HNer on Friday February 18, 2011 @02:46AM (#2234658)
So can html5 continually ping a variable (say a time point) while a video is playing, including other variables back to a third party server (if the video content was embeded via a jsonp wisget etc.) ??
Re:Nissan Leaf by Hixie on Friday February 18, 2011 @04:11AM (#2234817)
Sure.

<video ontimeupdate="sendXHR(currentTime)" src="myvideo" controls></video>

...where "sendXHR()" is a five- to ten-line wrapper around XMLHttpRequest.

Re:Nissan Leaf by coderdude on Friday February 18, 2011 @01:24PM (#2236577)
Indeed. So now browsers can finally start to do what Flash can do. This argument is only recently valid then.
Re:Nissan Leaf by frevd on Friday February 18, 2011 @02:54AM (#2234674)
That's the point - it can do whatever you can do, all technical prerequisites are available (threads, background-requests, runtime-dynamic code etc). Once the proper tools are available providing diverse standard functions, it will spread and be easier for non-developers.
Re:Nissan Leaf by spoondan on Friday February 18, 2011 @03:37PM (#2237147)
Hixie answered your specific question, but I think you're missing a very important point: "Doesn't every major browser release leave less and less that Flash alone can do?" There are some things (not this one) that Flash can do that browsers aren't yet able to do. The present limitations dictate what you can do today, but they have little relevance to the long-term discussion.
Re:Nissan Leaf by schwabacher on Friday February 18, 2011 @02:58AM (#2234682)
I don't want to weigh in on the flash/javascript debate, but couldn't you repeatedly change the src on a hidden image with get variables in the url?