Also having the same issue with .WMV files. Please advise, thank you.
The player can’t handle AVI or WMV files because those formats aren’t compatible with HTML5 or the Flash fallback player. However, you should be able to encode MP4, OGV, or WEBM versions of those files and really you should be able to insert the shortcode for any video file even if it won’t end up being able to play it.
On your server what MIME types are AVI and WMV configured as?
Here are the MIME types my wmv and avi are configured as:
$existing_mimes[‘wmv’] = ‘x-ms-wmv’;
$existing_mimes[‘avi’] = ‘x-msvideo’;
I’m actually don’t need the plugin to convert or do anything with the AVI and WMV files. I just need it to treat them as if they were an accepted file type (mp4 for example), so I can use the standard embed code to embed them. At the moment, WordPress seems to bypass the plugin when it recognizes an .AVI or .WMV file, so I can’t embed it with the plugin’s shortcode. Is there a configuration file somewhere where I can manually add .AVI and .WMV as accepted file types for embedding?
I understand embedding them wouldn’t work by default, but I wrote some custom code to automatically convert the .AVI file to a .MP4 file in the back-end, and then it changes the shortcode to reflect the .MP4 extension.
The plugin looks for any MIME type that starts with “video” which is what WMV and AVI files should be configured as. Rather than x-ms-wmv
WMV should be video/x-ms-wmv
Perfect, that worked thanks!
don’t suppose you can post the code you used to amend this plugin could you. I have a bit of kit that only records in avi an I need to put these short clips online, in line with my work. I don’t want the extra work of having to convert them to another format first.
Kind regards
Mark
Hi Mark, please email me at dan@swssupport.com
Hi Mark, pleaseemail me at dan@swssupport.com