Is it possible to serve videos from the cache?
The reason I ask:
I have a site where users are uploading (mostly) images and video into a directory that is NOT able to be read by a web link. This directory is then symlinked to the zenphoto/albums/ directory.
Zenphoto has no problem with images images after I enabled the option to move full sized image to the cache before serving. Obviously all thumbnails are generated and put into the cache before serving anyway.
Is there a similar option I can enable somewhere to serve videos from the cache? If not, where would be the right place to look to add it? class-video plugin?
Currently what happens is flowplayer or jplayer attempt to open the link to the video via http and it fails and the player just sits there doing nothing.
Comments
There is of course no video cache since there is nothing to cache since videos are neither cropped or sized.
My setup could be described as similar to:
The item in the gallery appears to have http://domain.com/zenphoto/albums/videos/video1.mp4 but the videos/ is really a symlink to http://domain.com/videos/ which is not accessible by weblink (.htaccess restricted).
I can write a small php script using readfile which will return the file with correct headers to the player plugin (flowplayer or jplayer).
Where would I put the code that tells zenphoto that for something located at http://domain.com/zenphoto/albums/videos/video1.mp4 it should pass along the url of http://domain.com/videograb.php?file=video1.mp4 or something similar? Or is there no real good place for this to go?