SimplePie 1.5 is now available!

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation » Frequently Asked Questions » Supported Media Mime Types

Supported Media Mime Types

SimplePie 1.0 has improved support for embedding more media mime types. It also introduces some new methods like get_handler() which tells you which handler SimplePie would recommend you use when writing your own embed code, and get_real_type() which tells you what the mime type actually is based on the file extension of the media file and some other variables.

Mime Types

Handler Mime Types
Flash application/x-shockwave-flash, application/futuresplash
Flash Media video/flv, video/x-flv
MP3 audio/mp3, audio/x-mp3, audio/mpeg, audio/x-mpeg
Odeo (MP3's from the Odeo service)
QuickTime audio/3gpp, audio/3gpp2, audio/aac, audio/x-aac, audio/aiff, audio/x-aiff, audio/mid, audio/midi, audio/x-midi, audio/mp4, audio/m4a, audio/x-m4a, audio/wav, audio/x-wav, video/3gpp, video/3gpp2, video/m4v, video/x-m4v, video/mp4, video/mpeg, video/x-mpeg, video/quicktime, video/sd-video
Windows Media application/asx, application/x-mplayer2, audio/x-ms-wma, audio/x-ms-wax, video/x-ms-asf-plugin, video/x-ms-asf, video/x-ms-wm, video/x-ms-wmv, video/x-ms-wvx

How does this apply?

get_real_type() will check the file extension and return one of these listed mime types if its file extension (via get_extension()) is known to map to it (the right-side of the chart). get_handler() will return a value corresponding to the recommended handler for this particular mime type (the left side of the chart).

The variable here is whether or not the path to mediaplayer.swf has been given to the mediaplayer option in embed() and native_embed(). If so, Flash Media support will be enabled, and MP3's will be handled by the Flash Media handler as well. If not, Flash Media support is disabled, and MP3's will be handled by QuickTime instead.


faq/supported_media_mime_types.txt · Last modified: 2011/10/19 07:11 by rmccue