My CFUN Presentation and Sample Files

Sorry for taking so long, but here is my CFUN presentation, and all the files for the sample Flash Video Archiver application. There are no instructions included (sorry, no time), but it’s very straightforward, so you shouldn’t have any trouble getting started. Here is everything you should need to know:

The Flash Video Archiver (Flava) has a ColdFusion back-end for managing media files (FLVs and MP3s only), and a Flash front-end for playing the media. Install the files like this:

  • webroot/flava
  • webroot/flava/flava.swf
  • webroot/flava/admin (ColdFusion files go here)

All the ColdFusion files should be in the “admin” directory. If you create a directory called “flava” in your webroot, and unzip flava.zip in that directory, the correct directory structure will automatically be created.

The next step is to tweak the Application.cfm file. Most of the values inside of the init tag will need to be edited to work with your configuration. They should be pretty self-explanatory. The only one that isn’t is the password variable. Use the ColdFusion hash function to create a hash of a password, then copy and paste the hash into the Application.cfm file. When you log in, type in the un-hashed version of the password.

Here’s an explanation of all the variables:

  • mediaStoragePath The path where the application will save your FLV and MP3 files. This should be inside your webroot, or have an appropriate mapping, because they need to be accessible to the Flash front-end.
  • mediaUrl A URL version of the mediaStoragePath. Files in the directory specified by the mediaStoragePath should be accessible through this URL.
  • username The username to log into the application.
  • password A hashed version of the password. (Use the clear-text version of the password when logging in.)
  • dbFileName The path and full name of the WDDX file where the media data is stored. This can be anywhere on your hard drive.

The last thing you will need to do is open up flava.fla and change the web service base URL at the top of the script in the “script” layer so that it points to your server. Then published the movie, and you should be all set.

To view the admin application:

http://yourserver/flava/admin

To view the Flash front-end:

http://yoursever/flava/flava.swf

Once someone gets it up and running, can you post the URL here? I can’t deploy a working version myself because of bandwidth limitations.