Download: Imageflow youtube 1.0 .rar [22 KB]

You are free to use this in any product, or on any web site.
Imageflow with youtube is released under a Creative Commons Attribution 3.0 License. You're free to use this for both commercial or personal use as long as you link back to http://www.cfconsultancy.nl
Email cfconsultancy

ChangeLog

Version 1.0 youtube imageflow
This is not the official version of ImageFlow. It is a hacked version by Ceasar Feijen from cfconsultancy to make it compatible for playing youtube movies

Grab yourself a copy of the official ImageFlow version at http://imageflow.finnrudolph.de. For more information about ImageFlow read the Documentation and check his Newsblog.

2008 cfconsultancy

ImageFlow 1.0 with youtube

Keywords:
Loading images
loading
Phil Collins - In The Air Tonight (Official Video) Phil Collins - Against All Odds - Live Aid 1985 - London, England Tarzan Soundtrack - Youll be in my heart by Phil Collins Phil Collins - Against All Odds (Take A Look At Me Now) Phil Collins: Easy Lover Phil Collins Farewell Tour - Drums and Take Me Home Phil Collins - Another Day In Paradise Phil Collins - I Wish It Would Rain Down (Official Music Video) Phil Collins - I Dont Care Anymore (Official Music Video) Phil Collins Against All Odds(Take A Look At Me Now) Phil Collins - Youll be in my heart Phil Collins - A Groovy Kind Of Love (Official Music Video) Drum Duet - Phil Collins and Chester Thompson drums AWESOME! Phil Collins - Sussudio Phil Collins - One More Night (Official Video) Phil Collins - Dont Lose My Number (Official Video) Phil Collins Gorilla Drummer Cadbury Ad (Dairy Milk) Phil Collins - Another Day in Paradise Phil Collins - Take Me Home (Official Music Video) Phil Collins - You Cant Hurry Love Phil Collins - True Colors Phil Collins - In The Air Tonight (Live) Phil Collins - Cant Stop Loving You (Official Music Video) Phil Collins - i wish it would rain down (Complete Version ) Phil Collins - True Colors (Official Music Video)
In this example I retrieve 25 movies from youtube with the keywords Phil Collins.
The movies are sorted with the option relevance.
Imgeflow will start focussed on the retrieved 11th movie.

INSTALLATION
Unrar and upload to your server
Open index.php and change the settings to your needs
//Default keywords
$videocode = "Phil Collins";
//Sorting - can be relevance (default), published, viewCount, rating
$sorteren = "relevance";
//Maximum results (cannot not be higher then 50)
$maximaal = 25;
//Background for video player and div layer
$background = "#FFFFFF";
//false for normal playback quality
$highquality = false;
//Directory where the images will be stored and cached (needs to be chmod to 775 or 777)
$imagesdir = "./img/";
//Cache the xml feed too true or false
$cachexml = false;
//Empty cache after one hour 3600, one day 86400 or 604800 one week)
//Remove if you don't use the search form above ( since you don't really need it then )
$cacheLife = 3600;

There are two javascript settings you can change
1. Imageflow
/* Sets the numbers of images on each side of the focussed one */
conf_focus = 4;
/* 0 = default, 1 = small to big picture Change this to see the effect */
sizeAlgo = 0; //
/* Glide to a picture on startup. For example 10 is the 11th picture
Use 0 for the starting picture */
glidetopicture = 10;
/* Autostart slideshow */
slideshowauto = true;
/* Show slideshow button */
slideshowbutton = true;
/* Slideshow time setting in seconds */
slideshowtime = 3000;

2. Youtube player
//Settings for the widht and height of the youtube player
var youtubewidth = '425';
var youtubeheight = '350';
//Settings for the position of the youtube player
vidPaneID = document.getElementById('youtubepopup');
vidPaneID.style.top='-350px';
vidPaneID.style.left='-30px';

The searchform can be removed easily ( just needed them for the demo )

Also Check out my demo with Imageflow, highslide viewer and sound effects
Or my demo with Youtube, highslide and Jeroen wijering flash player 4.0


TIP. If the results are less then 10 movies, imageflow will loose the focus because in this example I have set the starting image on 10.
Solution is to set the glidetopicture to 0
glidetopicture = 0
If you want to use some javascript to handle the slideshow you can use the following functions
One picture forwards onclick="handle(-1);"
One picture backwards onclick="handle(1);"
Stop slideshow onclick="stopslideshow();"
Play slideshow onclick="slideshow(1);"

2008 cfconsultancy