Tell HN: Couldn't Sleep Last Night, Wrote a (No-Flash) HTML5 Viewer for YouTube
neosmart.net
neosmart.net
When I didn't find one I wrote this instead. It's really basic, but it gets the job done. Give it a YouTube link and it'll display the HTML5 video. The userscript adds a link to the HTML5 viewer for all video pages on YouTube.
I tried Firefox too and still no download. Activity Monitor shows no network activity that would be indicative of it downloading. I tried pressing play to get it started, still nothing.
The video that I was attempting to watch:
http://neosmart.net/YouTube5/index.php?url=http%3A%2F%2Fwww....
I'm looking into it.
EDIT: Found the problem. Need a couple of minutes though.
EDIT2: Should be working now. Local testing hadn't shown the IP restrictions in the YouTube link token, fixed now. Thanks for bringing this to my attention, Nathan.
javascript:(function(){url='http://deturl.com/download-video.js';document.body.appendChild(document.createElement('script')).src=url;})();
I've never had a problem using this.Try this link: http://neosmart.net/YouTube5/
edit: Hey, there is http://neosmart.net/YouTube5/youtube5.user.js
They pull ideological bullshit like this all the time (not treating iso8859-1 as cp1252, refusing to do font-face for years, etc). I hope their heads fall off.
"Block evil Adobe Flash"
Great, more ideologists.
I use Flash (Flex, actually) for my company's website and it works very well for us. Blanket-labelling it as evil is just silly. Flash is no more evil than a hammer.
Silverlight has the latter; HTML 5 will eventually attain a decent install base; but Flash has both now.
a) It eats babies. (Seriously, look at how much CPU and RAM it eats.) b) It's insecure. Want a flaw that even users with a safe browser (ie not IE) are not safe against? Search for a Flash vulnerability. c) It sucks for handicapped people. Blind? Well your bad that you can only use a screen reader. No website for you. (This obviously doesn't matter for video sites). d) Cookies? Lame, if you really want to track your user (or whatever you call the people that watch your ads), even if he clears his browser cache, use Flash cookies. Want to open Popups? Too bad the user has a popup blocker. Oh wait, we can get around that with Flash. d) It's closed source, so many free software people don't want to run it.
You are right that Flash's accessibility support and the...lack of content providers taking advantage of them...sucks for all sorts of handicapped people, but it's still there and being improved on (hopefully) so it's not a total dead end for screenreaders. Plus, flash videos can be a good source for audio for the blind.
The problem is web standards and browsers are not great, either. Evil Adobe/Macromedia took advantage of this chaos and solved several problems quick and dirty while pushing one of the most proprietary technologies widely used.
And "the web" has to come back with real non-proprietary widely adopted solutions to all this things because most web designers are addicted.
One of the typical non-video problems: file uploading.
So Adobe and Flash are evil, a necessary evil. The OP coded something instead of just giving an opinion. Respect.
PS: I still don't understand how Microsoft, Netscape, Opera and Mozilla allowed this monster to exist.
Must be viewed in Chrome Also show a video of their O3D technology, similar to WebGL.
fyi, the link works great in Safari.
This does highlight one problem with html5 based video, different browsers will interpret it differently no matter how hard standards are pushed. Flash video (FLV) saved us from that and all the horrible players like Real Media, Windows Media and Quicktime by being consistent and working across all browser as long as you have the plugin.
Don't know why it's taking it down so badly, MySQL has been acting up for the past fortnight :S
EDIT: Just swapped services (from Apache to IIS) and it looks like everything's doing better.
I not only could not get Firefox (3.5.5), IE7, or Safari to work with your HTML5 YouTube app, but I could not get YouTube's app to work either; I hope this fact mitigates your worries.
Tested as well on Chrome for Windows. Of course, Internet Explorer doesn't work.
EDIT: Sorry, guess that's the effect of an all-nighter. It actually doesn't load in Firefox for me, either.
Nevertheless its a neat app. ;)
What makes me think companies with the concerns outlined by the OP would not consider HTML5? It would be much more difficult to control their content. Flash is great as a hard to penetrate content container. Exposing your content by using HTML + JS to display it is less than ideal if you want to serve ads/make it difficult to steal content.
Youtube streams the file. Youtube also serves ads. Youtube, as exemplified by the OP and by my link is experimenting with an HTML5 player. But you are right. HTML5 has this problem of exposing the player, so any mechanisms in the javascript to force ad viewing can be more easily defeated.
A possible solution would be to track user session and force a new ad on every new session (so you can't clear cookies). That way ad tracking can persist outside of the video player itself by using the cookie.
The other problem is, who serves video files themselves anymore? So if Youtube, or any other video services who depend on ads to keep themselves afloat can't use the HTML5 video tag, who will?
It seems to me that unless the ad is prepended to the actual video file then using javascript we can tell when an ad is playing and kill it/skip to the "real" content. On the other hand the average user probably does not have the expertise to kill ads, so maybe the point is moot.
Or use firebug and inject javascript into the page.
I think people stopped embedding videos and started using third party tools because it makes it easier. Third party tools will always make it easier. No need to worry about bandwidth, file space, etc (even if the cost of these items are going down). And as long as these tools make it easier, these tools will probably want control of their players and will want to put ads in them.
No they don't, they use progressive download. This is very different from streaming.
Actually it'd be more in YouTube's interest to control the playback experience since they use HTTP streaming, since the stream is less controllable by itself.