News for hackers. Stuff that matters.
Re:Why the HTML5 ‘Video’ Element Is Effectively Unusable by pkulak on Monday December 21, 2009 @03:22PM (#1008529)
That is a problem, but it seems like it would be very easy to move the image - click for video behavior into a pretty small JS library. Writing something like this probably wouldn't be all that terrible:

<script type="text/javascript"> $(function() { $('#video_1').to_video('myvideo.mp4', 'myvideo.ogg'); }); </script>

<img class="really_a_video" id="video_1" src="mythumb.jpg" />

I'd still rather do that than deal with Flash.

Re:Why the HTML5 ‘Video’ Element Is Effectively Unusable by bphogan on Monday December 21, 2009 @04:28PM (#1008637)
But see that's kinda stinky cos it's not semantic. You're not embedding the video element in the document so it can describe the content. It would be really cool if the js somehow could remove the video element or something and add it back in... but I dunno how possible that is.
Re:Why the HTML5 ‘Video’ Element Is Effectively Unusable by jiaaro on Monday December 21, 2009 @04:46PM (#1008664)
Here's an idea:

Why not just add an onclick that puts in the `<source>` tags?

that way you still have a `<video>` tag but it has nothing to preload until you click it

note: I havn't tested this approach

Edit: Ok so I tried that in firefox and it doesn't work. But What if you make a video with 1 frame and a resolution of 1x1 and make that the source. Then you can replace that with onclick? (this one is more work than I'm willing to do out of curiosity, maybe someone else will try it?)

Re:Why the HTML5 ‘Video’ Element Is Effectively Unusable by dasil003 on Monday December 21, 2009 @06:23PM (#1008871)
The semantic part isn't even what really bothers me. I'm more concerned about requiring javascript for something that shouldn't need it.
Re:Why the HTML5 ‘Video’ Element Is Effectively Unusable by didroe on Tuesday December 22, 2009 @09:05AM (#1009886)
Is it possible to start playback on the HTML5 video element without Javascript? I thought it was a requirement.
Re:Why the HTML5 ‘Video’ Element Is Effectively Unusable by dasil003 on Tuesday December 22, 2009 @11:14AM (#1010122)
I just assumed... why would they do that?