New Feature: Audio and Video

Thumbnails are now returned as Image objects rather than generated HTML. This means you now have much more control over the way your video thumbnails display. Use the function $VideoThumbnail to get your thumbnail object, then run whatever formatting you want on it. Examples:

Thumbnail is now cut during the "processing" phase of the upload. No more template lag! FLV will cut a fairly large thumbnail to give you the most options for resizing. By default the values are 640x480, but if you want to make them bigger, just reset the class vars in your _config.php

"Try it with the latest build, Shawn. Added AAC and AIFF to the list."

I can upload files if they have those extensions (i.e. .aac, .aiff), but the flash player doesn't play them. It is probably a limitation in the flash player. No big deal. Although I should mention that the extension for AAC usually is .m4a, and many programs spit out aiff with .aif

Although I wouldn't spend much time tweaking that since I think the player will still not work anyway... :)

Basically the player loads, then when you click the play icon, it says it is buffering, and the bar fills up. But no audio actually plays. It just sits there. The MP3s load up and play right away (I've got Gigabit between me and the server, no VPN's).

I think most of my users who would be interested in the functionality are going to be totally fine with mp3. I only tested other formats just to know what would happen. Since I can set the allowed type I can make it end user proof.

I think he's using the PHP version of the open-source FFMPEG (http://ffmpeg-php.sourceforge.net/) video conversion library to do all of that. Note that to have video and dynamic thumbnail grabbing features available to your site, you must FFMPEG-PHP extension already installed on your dev machine or server.

PDFs and DOCs don't have a forTemplate method because they fall in to the generic File class. You're going to have to sniff out on your template whether the file is and FLV/MP3 or not. FileDataObjectManager detects the FLV or MP3 extension and "upgrades" those files to the FLV or MP3 class, which have their own forTemplate methods that render Flash players.

Standard file objects don't have a forTemplate method, though, so you'll have to do something like a link to $File.URL or however you want to handle it.