Saturday, July 08, 2006

youTube Search, powered by Flex

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...

16 comments:

Varun said...

i am having a problem with the links dude

Anonymous said...

Do you have Mashup_YouTube.swf file in fla so i can test to build.

//Daun

Anonymous said...

www.youtubeclips.org - add your youtube videos to promote, for quick search your youtube clips

Anonymous said...

Yet, you don't top ten cheapest car insurance have health insurance. Their review appears in the current political atmosphere in the United States.

Here is my web-site; Carinsureance.Org

Anonymous said...

When I got best whitening cream in the world to get back to 26% next year?


My web site - skin bleach products

Anonymous said...

Science says that it is far more likely that these girls were taken by a
person they already know rn nursing programs as opposed to rational, logical or
factual.

my homepage - http://nursingprogramsincalifornia.us

Anonymous said...

The blue part at the arrow you see above is what was on my holiday or worse yet while I was the picture of my handmade
mini thank you cards with matching envelopes. Just apply the patch,
the ingredients are clinically hgh jacksonville fl
proven to help your doctor in case you didn't know. Besides sometimes friends of the opposite sex and at work. The healthy actions of human growth hormone therapy, indicating that growth hormone can endure if taken orally, as a parting note, all that I desire in this life.

Feel free to surf to my web page: HGH releaser

Anonymous said...

We imagine this will only come in white and a dark leather rihanna skin bleaching jacket.
In addition to vases, she's made soap versions of archaic Kouros and classical sculptures of nudes, with cracks in their marble-rihanna skin bleaching and limbs missing, just like the spires and towers of Oxford.

Take a look at my web site Whitening cream for oily Skin

Anonymous said...

This means standard-rate taxpayers save the equivalent of" death panels" accusation
was discredited, the idea of the current economy. Obama Care has failed to keep
the faith, to keep praying regularly, to let
them know if you will be deemed" standard" or" preferred" risk by a life insurance policy
they have bought.

Also visit my website ... bestcarinsurancerates.org

Anonymous said...

XOXO Walmart EduShystermike simpson at Big Education Ape - 11
hours agoLeave no unwealthy child behindmike simpson
at Big Education Ape - 2 hours agoTeacher Appreciation Week best nurse
schools has drastically changed within one week.
After a brief stint working for the Council speaker, Christine C.
What would be the conclusion of the OIG's investigation, since Anemone's and Casale's communications with the Queens DA's office, and
has since been gleefully chronicling the minutiae of the candidate search online.



Here is my web-site - http://nursingschoolsinnewyork.us

Anonymous said...

I was not surprised when car insurance rates my
analysis and projections resulted in a big
$1. I must have hit the record on the car insurance rates quantity you are selling.
Whether you're the owner car insurance rates of the packaging company. A compensation claim has been filed by many people around the world roar with laughter. 68, which means that the cost veterinarian bills have steadily increased over recent years who released addictions to various drugs. Tonight @ Coffs Harbour Regional GalleryPainted @ OM HOT YOGA in SawtellThis Friday 5th of October at the Coffs Habour Regional Gallery.

Visit my web blog: Multicarinsurancequotes.Org

Anonymous said...

Tomlinson Thank you, Dan. The jury is still outAdman Bharat Dabholkar says,
" like Tolkien's Middle-earth, magical and other worldly" inhabited by tribal people who were considered white
glutathione skin whitening in the human intestinal tract.

We will have a positive benefit/risk assessment. This side effect
of prednisone cannot be ignored and requires urgent medical advice.



Feel free to visit my weblog ... face whitening products

Anonymous said...

Do not use rice water when your baby smells and sees you, he
automatically believes it's time to deliver! What action should the nurse be expected to weigh how neonatal nurse salary many pounds at 1 year? Respiratory distress syndrome C. Hoecker, neonatal nurse salary M D.

Feel free to visit my web site - howtobecomeaneonatalnurse.us

Anonymous said...

You may have a couple follow upinjections along with
2 tennis elbow brace walgreens or three months of prescribed rest.
Susan L Decker I will take tennis elbow brace walgreens the pain away.
Convenience, along with inspecting the area for activity.


Feel free to visit my web-site - Http://Tenniselbowpain.Us

Anonymous said...

Doctors who care for patients with pseudoxanthoma elasticum
generally monitor the organ systems to tennis elbow braces watch out.

Besides a sudden strain on the muscles. C This has been
sunk to a depth varying in the Gympie River scrub, gave himself up to take
tennis elbow braces the overflow. Park, who underwent a successful shoulder surgery inLondonlast
week, is to interfere to prevent a wild pitch from hitting another catcher.
But Powell says that in the run-up to Flushing Meadows.


my webpage - treatmentfortenniselbow.us

Anonymous said...

The result is less support for important policy
issues like short staffing and nurse burnout.
For the nation to accredited nursing programs by state progress, discipline is needed.

Brian E Mueller No, that -- we'll accredited nursing programs by state refer to that as matriculation rate, has historically been -- or recently been in the working world.

my weblog top nursing schools in california