YouBrowser - Look For Video (literally)
I had some chance earlier last year to play around with YouTube’s API and I’m looking forward to improve this toy. Basically when we want to find something, etc “look” we really want to look around. So I hope you will find this useful and have fun “looking” for top videos.
Do keep the comments and suggestions coming in to make this one a better one for all of us. Cheers!
If you like it, digg it or bookmark the url, will be permanent at : http://labs.oneduasan.com/YouTube.html
Update : Tips to share.
In regards if you are looking to do some dynamic user input/search through php-->flash. There’s some trick I found on the internet. I will probably share it in detail next time when I finalize the detail on YouBrowser search engine. But basically if you want it to work, you need to send a string to youtube on the ‘tag’ you want to search and parse it back as a xml document to you through php. And I realized it can’t be done directly through Flash, at least in AS2.0.
$devid = $_GET['func'];
$theURL = "http://www.youtube.com/api2_rest?method=youtube.videos.list_featured&dev_id=".$devid;
$contents =implode ("",file($theURL));
echo($contents);
?>
Note that the function that is helping this to work is the implode() function that feeds the data from the api into xml data and then send it back to Flash. Hope you will find this useful.
No comments:
Post a Comment