Saturday, July 8, 2006

youTube Search, powered by Flex

Jan 2007: Due to abrupt youTube.com security policy change, my youTube App doesnt work anymore. Possibly due to an exploit, youTube abruptly changed their crossdomain.xml file to only allow access from the youtube.com domain. As a result, YouTube developer API calls no longer work if the SWF exists in a non-youtube.com domain

So here it is, I have finally done it... a day of hard work, coupled with a couple of days of research :). I have the youTube search Tool, ready to go! You might have to de-activate the popUp blocker on your browser to see this application. I have made an alternate version for those who do not know how to do that. This application requires you to have FlashPlayer9. Download FlashPlayer 9 here and then Click on the links below.


This is the first public application that I am posting, so I'm really excited about it. It was an awsome experience building this application. The initial time was spent in the layout, look & feel of the app (which i think is still "too plain"). Then came the REST calls and parsing the incoming XML to suit my needs.

Then came a heart-breaker for me, which made me almost ditch my application. Due to some chaps ripping flvs (Flash Videos) off youTube (read it here), youTube had reworked their site inorder not to expose the flvs. So now i couldn't play them in my app... Directly.

But a programmer always finds workarounds to problems. Those who frequent youtube know that youtube provides a html code snippet, allowing you to embed it into your blog. In the code, there is a text like "tLuLE3jm1VU" is the only thing that varies across videos (and its called the video id). I had the video id of the videos i wanted, thanks to the youTube API. So i wrote a small PHP script to take the id as input and then generate the html page for my video.

I would then popUp this window as an html page (of a specified size) through JavaScript which was called inturn from my application using the Flash External Interface API. And hola... it worked... But my woes wouldnt end there. This workaround came at the cost of perfomance in my app and some of the thumbnails were not loading properly after the external interface call.

Then our very own Manish came to the rescue... Manish had written a youTube Featured video player back in March and had now reworked it to extract the flv out of the id again... Then things were all on a platter for me... I could now use Manish's code snippets, extract the flv file and play it in my own Video Display inside FLEX.

A bit of exceptional handling and try-catching :) and the application was ready to rock. So presenting to you....

If you find any bugs or issues, mail it to me at raghunath.rao at gmail dot com
Anyone wants to look at the code, you can find it here...

9 comments:

Anonymous said...

Thanks.Best Regards
Erotik Shop, Erotik Market, Erotic shop, Sex shop, Geciktirici, Seks shop, Penis Buyutucu, cialis, kamagra, viagra, sexshop, seksshop, erotic market, virility pills

sex shop -

sex shop -

sex shop -

seks shop -

seks shop -

seks shop -

erotik shop -

erotik shop -

penis buyutucu -

penis buyutucu -

penis buyutucu -

erotik shop -

seks shop -

sex shop -
erotik shop -
erotik market -

vidrom.com -

video share -

file upload -
free file -

image upload -

erotik market -
erotic market -
erotik market -
erotik market -
erotic shop -
erotic shop -
erotic shop -

alisveris -

12 taksit -

feromon -

Kozmetik
Shopseks.com
Hepzinde.com
penis buyutucu -
penis buyutucu -
virility pills -
elektronik sigara -
virility pills -
penis buyutucu -
penis buyutuculer -
bayan ic giyim -
virility pills -
elektronik sigara
feromon

Anonymous said...

The gel adjustable lifts are produced in top quality silica gel and are aClearly heel Lifts great low cost option, incorporating a gel heel cup and four extra silicone layers, enabling the user to add levels if and when needed
shoe lifts

Anonymous said...

heel Lifts might not be talked about frequently but they're worn by thousands of individuals each and every year, such as celebrities who would like to appear taller than they are naturally

http://jkdromania.com/forum/profile.php?mode=viewprofile&u=75009&sid=01de31d91661470391a5f4c944df9ae7

Anonymous said...

Models, singers and actors all use heel Lifts at some point for an instant height increase

http://www.butuanblogs.com/groups/heel-lifts-and-the-economy/

Anonymous said...

Elevator (Frankenstein?) Shoes Another big difference is the fact that you can use heel Lifts for leg length discrepancy in only one shoe and no one will discover the difference

http://www.seamensclubny.com/scnet/member.php?action=profile&uid=3752

Anonymous said...

Four unilateral DDH patients were treated for leg-length equalization using shoe lifts

http://www.efeonline.org/user/view.php?id=6849&course=1

Anonymous said...

Elevator (Frankenstein?) Shoes An additional large distinction is the fact that you can use heel Lifts for leg length discrepancy in only one shoe and no one will notice the difference

http://xlbeta.com/groups/enhance-your-height-improve-your-x-mas/

Anonymous said...

http://themostcake.co.uk/groups/heel-lifts-being-taller-utilizing-shoe-lifts/

Anonymous said...

http://www.jessicaskids.com/?q=node/185789