What you’re describing sounds a lot like “lazy loading”, and
depending on how your movies are encoded, this can be easy or
difficult to pull off.
The database part of it sounds like another major wrinkle waiting to
happen. Would you be restricting access to these movies based on some
access rules in the database? Do you have a Filemaker ↔ MySQL
bridge that you are using to integrate the data from one world to the
other? (They’re not compatible, except as an export-import sort of
thing, involving a Rosetta stone of one sort or another.)
But as to the lazy-loading part. Here’s two ideas:
-
Make everything available as QuickTime, and use the native “poster
movie” technique described here <http://www.walterdavisstudio.com/
posterframe.html> to create “click-to-download-and-play” poster
images for each movie.
-
Upload all the full-size movies to a central location, as you
describe, then use a JavaScript function to replace the content of a
much smaller image of the same type as your movie with the full data
version. For example, let’s say you had a Flash movie in a SWF
wrapper. Make a tiny 1 frame version of the movie that includes the
“click to play” text as an overlay. Place that in your page as
normal, then add a click listener to the preview movie using
Protaculous[1] Observer:
Apply Observer to the preview movie. Add the ‘click’ event to the
Event field, then add the following code to the Function Body editor:
this.down('object').movie = '/path/to/movie.swf';
this.down('embed').src = '/path/to/movie.swf';
Replace path/to/movie with the real path to your high-quality file,
naturally.
Walter
- http://actionsforge.com/actions/view/19-observer
On Oct 20, 2008, at 12:13 PM, george wrote:
I need to have a way to store all of the video files for my site
centrally so that they are accessed on the various pages once
someone clicks on the link. The idea is to cut down on the load
time for each page, especially since the site has a heavy usage of
carousels.
My thought is to create loader page images for each video and have
them placed in the correct spot on each page. Once the image is
clicked it would then load the proper video into that location and
begin to play.
I have done a fair amount of browsing through the CMS discussions
here and took a look at the new AjaxFileListing action, but I am
unsure if these are what I need. We have an internal FileMaker
database and all the files could be placed into that for access
(although I don’t know how that works) via the MySQL database and
php available on our server.
Am I doing an overkill? Is there just a simple way to load all the
files into one folder and then have each loader link to the right
file via an action I am unaware of?
Thanks.
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options