Embedding YouTube HTML5-video with newTube
With all the discussions about the place of Flash on the ever-evolving web and the excitement following Google’s announcement about YouTube going HTML5, one would almost forget that YouTube is only at the very start of their “open video” endeavor. The limitations of the current implementations are numerous; there’s no OGG (damn), no ads (yeah!) and no embedding either (damn) for example.
After looking into ways to call the YouTube mp4-file from within a Video for Everybody html-block (which is not possible, Google protects raw video-files using what seems to be a session-based hash that has to be provided in the URL), I decided to take another (dirty) approach; faking it!
The solution is entirely javascript-based and is as un-elegant as it is simple; create a html-file with a script include of http://futtta.be/newTube/newTube.js and a div with “id=newTube” containing a link to a YouTube-page and the script automagically takes care of the rest. Check out http://futtta.be/newTube/ to see it in action.
The result is an embedded YouTube player which will display the HTML5-version if you’re running a browser which supports mp4/h264 playback (i.e. a recent version of Chrome or Safari) and if you enrolled in the beta. If either of these preconditions aren’t met, you’ll just see the plain old Flash-player.
Don’t get your hopes up, in reality newTube is probably pretty useless (for reasons I’ll get into in a follow-up post, when I have some time to spare that is). You’ll have to wait for someone (YouTube, Dailymotion, Vimeo, … are you listening?) to offer real embeddable html5-video (with support for both mp4/h264 and and ogg/theora).
But I did have fun creating the very first html5-capable embedded YouTube-player
As found on the web (February 2nd)
|
|
|
Posted Jetpack 0.8 and the Road Ahead.
|
|
|
|
|
|
Posted Spirit.
|
|
|
Published Het Groen-complex.
|
|
Posted Web wonders.
|
|
|
|
|
|
|
|
|
|
|
Posted Fred Jones in Adventureland.
|
|
|
Liked 3 videos.
|
|
Posted Woorank.
|
|
|
|
|
|
|
|
|
|
|
|
|
Frank springt op de administratieve molen; portefeuille kwijt .. :-/.
|
Gilles Peterson & Thom Yorke draaien rare plaatjes
Twee mannen van middelbare leeftijd draaiden een paar weken geleden twee uur lang om beurten allerhande rare plaatjes, kletsten wat en dronken ondertussen gezellig een theetje. De microfoons van BBC Radio 1 mochten meeluisteren naar en U kunt dat ook, door onderstaande mp3 (feed-followers moeten wel even doorklikken) door de kantoorboxen te laten schalmen. Over de rechten moeten we ons toch -bijna- geen zorgen meer maken en uw maandagochtend-zieke collega’s zullen er U dankbaar voor zijn!
Read the rest of this entry »
Het Groen-complex
Groen zit sinds haar deelname aan de macht (nu ook alweer bijna 10 jaar geleden) in een weinig benijdenswaardige positie; zowat elk voorstel van de partij wordt onmiddelijk als onrealistisch of -als het een beetje tegenzit- bemoeiziek en dom van tafel geveegd. Het debacle rond de “downloadtax” is daar een goed voorbeeld van; een vaag artikel in de pers en direct afgeschoten op Facebook, Twitter en in de lezerscommentaren op de krantensites natuurlijk.
“Helemaal op hun kop gevallen”
“géén extra belastingen om weer eens een nutteloos instituut mee op te richten of overheidsschulden mee te delven”
“Een partijtje van niets die ons nog wat extra euro’s wil afhandig maken in deze tijd van crisis. Zou dat extra geld misschien moeten dienen om nog wat meer asielzoekers te kunnen regulariseren? Grrr…”
Of hoe een op zich niet onverdienstelijk voorstel (gewild of ongewild) totaal verkeerd wordt begrepen. Want waar gaat het eigenlijk over? Mensen downloaden illegaal en zullen dat ondanks een repressieve aanpak (sluiten van p2p-netwerken, vervolgen van downloaders, …) blijven doen, ook al denkt Frankrijk daar anders over. Het voorstel van Groen/ Ecolo vertrekt dan ook van een heel ander uitgangspunt;
- iedereen mag alles legaal downloaden dankzij een ‘uitgebreide collectieve licentie’
- die licentie wordt gefinancierd door de ISP’s die voor elk breedband-abonnement met hoge downloadlimiet maandelijks een aantal euro’s betalen aan de auteursrechtenorganisaties
- dat geld wordt verdeeld aan de hand van steekproeven van het downloadgedrag
- de maximumprijs voor die breedband-abonnementen wordt wettelijk vastgelegd (zoals dat ook bij bv. brood gebeurd) om te vermijden dat de ISP’s de licentiekost op hun klanten verhalen
Vanzelfsprekend is dit geen waterdicht voorstel, maar het is tenminste een frisse kijk op het probleem van illegale downloads en een “uitgebreide collectieve licentie” zou (zeker als dat op Europees niveau wordt vastgelegd) wel eens echt een goed idee kunnen zijn. Maar een eenzame uitzondering daar gelaten doet niemand zelfs maar de moeite om het voorstel correct te lezen.
Nee, Groen, dat zijn wereldvreemde bemoeials die ons, als ze konden, nog zouden willen laten betalen om te ademen Mijnheer! Ondanks een blijkbaar sterke ecologische betrokkenheid van “de Vlaming”, kunnen voorstellen van Groen op basis van hun imago (dat andere partijen overigens graag mee in stand houden) en door gebrekkige Groene communicatie (het artikel in HLN was maandagochtend nog heel vaag en op de sites van Freya Piryns en de partij zelf was er geen letter over te vinden, hemeltergend als het onderwerp “internet” is) nooit serieus genomen worden. Indien Groen ooit terug echt politiek relevant wil worden, dan zal ze echt wel anders moeten gaan communiceren.
As found on the web (January 26th)
|
|
|
|
|
Published Enhanced privacy for embedded YouTube.
|
|
|
|
Enhanced privacy for embedded YouTube
While looking into the possibility to play embedded YouTube clips with html5’s video-element on this blog, I noticed Google added an ‘Enable privacy-enhanced mode‘ flag to the embed-options. This small tweak ensures that visitors who arrive on a page that has YouTube embedded, don’t immediately get tracking cookies stuffed down their throat. Unless they play the video or click through to youtube.com, that is.
Enabling the “enhanced privacy” option just changes the URL in the embed code from youtube.com to youtube-nocookie.com;
<object width="560" height="340"><param name="movie" value="http://www.youtube-nocookie.com/v/FuGJfVAgiTM&hl=en_US&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube-nocookie.com/v/FuGJfVAgiTM&hl=en_US&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>
The change has no impact whatsoever on the user experience, so I immediately tweaked the code of the Smart YouTube Wordpress plugin on my server and I asked the developer to add the option to his plugin as well.
Yet another small step in the fight against Google’s omniscience!
As found on the web (January 22nd)
|
Liked 1 videos.
|
|
|
Published Flash isn’t evil, but ….
|
|
|
Published add-to-any removed-from-here.
|









