I'm looking at potentially using this as a nice dropin replacement for what swftools did in D6. One of the nice features that swftools did was autodetect the media type and then displayed the appropriate player. So, if it was an audio file it used an audio player, a video file used a video player. I'm assuming it looked at the mimetype and determined which. In the CCK formatter, you simply chose "swftools" and it autodetected.
In the same way, it would be great if we had a single selection "mediaelement" and, upon choosing that, it determined audio or video automatically for each node. That way, a single filefield could be used for audio or video rather than a separate one designated for each.
Comments
Comment #1
mfer commentedThis may be possible as certain mime information is stored with the file in the database. I'll look into it.
Comment #2
SJourney commentedsub
Comment #3
dave reidHrm, interesting. This could be possible since we do store this data for managed files. For remote files this would require the use of http://drupal.org/project/remote_stream_wrapper.
Comment #4
jnettikOld ticket. Closing.