I am creating a site that auto loads folders of images and videos using PHP and displays them with prettyphoto. I am having problems with the thumbnails that appear underneath the current picture. If a video is part of the group then the thumbnail will be blank. I fixed that by using a default icon that shows a movie reel (in buildOverlay function).
The problem is that once I navigate to the video the entire thumbnail list disappears and does not come back until I close and reopen prettyphoto. I am currently dealing with Quicktime movies (avi for now) if that info is relevant. Any feedback or advice on how to go about fixing this would be great (or an explanation of how the thumbnails are inserted).
-I took the code that builds the gallery out of _buildOverlay() and created my own function injectGallery().
-I keep a global variable galleryVisible initialized to false and set it to true within injectGallery().
-Then in the open() function in the 'image' part of the switch I call my function only if galleryVisible is false.
-The only time the variable is set to false is in the 'quicktime' case of open (because I'm only using video but in theory it would work for other types that don't support the gallery).
*I had to remove the gallery hover functionality because of a bug that would make the gallery appear twice.
The final functionality is that the gallery is visible for all pictures and shows a predefined thumbnail for movies, the gallery disappears for the movie but I have no idea how to solve that problem.