Browse > Home / Archive by category 'experiment'

| Subcribe via RSS

Play youtube videos in flash tutorial

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 …

Flash gallery experiment …

this is a part of my final project which im about to finish , the project name is ” The Gallery ” .

The project is based on flash interface front end , php mysql backend , it allows users to register > creates a link for their own gallery , the user then can upload jpegs which gets resized depending on the size of the picture , then saves em into the Database .

Features also includes user CP ( upload & Delete images ) , Admin CP ( Approve new uploaded images )

Click on the image to view the gallery , it still needs some tweaks ( and do not start annoying me about the weightlifter ;) )

Flash Gallery