YouTube API Example
By Jonathan on January 11, 2012
Hey folks, been a while since I wrote here but have been very busy doing cool stuff at work ;) This is practically the same example that I wrote on a previous post here, but instead of using Flash and the YouTube data API for AS3, I re-wrote it with jQuery. You may wonder why do the same twice? Well simple, just for the fun of it :P.
I started to do it to get my hands dirty on jQuery, and not just to write some snippets of code, but just to try and re-do something cool.
I used the getJSON() function to parse the JSON feed from YouTube of the most popular videos, a searched video and if you’re watching a video, show related videos. Pretty straightforward. Now I found it pretty much faster than the Flex version and the most popular videos seems to be updated more accurately and faster with jQuery (not sure if it’s a caching or an AS3 data API issue).
Visit the example here, let me know what you think!
I have the source code on GitHub, you can check it out here.
Posted in JavaScript | Leave a Response

Leave a Reply