Filepicker.io - video / * mimetype does not work in Chrome

I recently noticed weirdness in Chrome, where .mov files are not recognized as valid video files during assembly. The following JSFiddle illustrates my point

http://jsfiddle.net/6aJBM/

Obviously, you will need to change the API key. If you open the above JSFiddle in Firefox, you can select both images and videos from the file system. If, on the other hand, you open it in Chrome, the .mov files will be grayed out and therefore will not be selected. It seems that .mov files are not registered as video files in Chrome. Has anyone encountered this problem?

+6
source share
2 answers

This is really stupid, but if you replace video/* with:

 video/avi, video/quicktime, video/mpeg, video/mp4, video/ogg, video/webm, video/x-ms-wmv, video/x-flv, video/x-matroska, video/x-msvideo, video/x-dv 

This will do the trick.

There is a weird bug / feature in Chrome that doesn't allow you to select .mov. I will have to look for it again, but iirc, chrome behavior is considered strict, to the letter, compliance with the specification.

+2
source

On the Filepicker blog , they suggested using the extensions filter instead of mimetypes .

 var acceptedExtensions = [ '3g2','3gp','3gp2','3gpp','3gpp2','aac','ac3','eac3','ec3','f4a', 'f4b','f4v','flv','highwinds','m4a','m4b','m4r','m4v','mkv','mov', 'mp3','mp4','oga','ogg','ogv','ogx','ts','webm','wma','wmv' ]; filepicker.pickAndStore({extensions: acceptedExtensions},... 
+1
source

All Articles