Like i promised many of you , here is a quick video tutorial on how to load youtube videos in flash , the only thing is im running out of time and i have many other projects to deal with so its a kinda fast so Listen and watch carefully , if you have a question regarding the tutorial you can always post a comment .
Things to remember :
- AbdulQabiz youtube php engine that is downloadable with the example sourcecode ( Many thanks to him ) .
- Dont forget to get your own developer ID since all the rest requests requiers the dev id e.g:
http://www.youtube.com/api2_rest?method=youtube.users.get_profile&dev_id=YOUR_DEV_ID
NOTE THAT YOU WONT NEED A DEV_ID IF YOU WILL MANUALLY ADD THE YOUTUBE VID LINKS .
- Read the INTRODUCTION and the DOCUMENTATION .
Things to consider :
The application i built at http://www.zainals.com/xperments/youtube is reading the XML file from youtube , now i didnt explain much about that because its a different topic but if you would like , i can make another video about xml when im free , but for the time being google it , you can find many tutorials at kirupa gotoandlearn.com and tutorialvid.com
Unfortunatly youtube disabled or changed their crossdomain xml file as mentioned on abdulqabiz blog , and will have to use some sort of a proxy script e.g :
<?php
$dataURL = "http://www.youtube.com/api2_rest?method=youtube.videos.list_featured&dev_id=YOURDIV_ID";
//note that this will not follow redirects
readfile($dataURL);
?>
Enjoy the following vid … Enlarge the vid for a clearer preview …