Reputation: 4386
I’ve made a website related to videos and audio at the beginning of 2013 and users had to upload video both in mp4 and ogv in admin in order to be compatible with all browsers.
I see today that Firefox finally supports mp4.
On this website, caniuse http://caniuse.com/#search=mp4, it says it is « Partially supported ».
Do you know what are the limitations ? Is it safe to allow user to simply upload only in mp4 ?
Upvotes: 0
Views: 179
Reputation: 8153
they vary, depending on os/gecko version, and between audio and video. with that said, i do not know if it is safe for users to simply upload only in .mp4, and offhand, i'd say not if you want cross-browser compatible media. there's a slew of media format converter JavaScript libraries you could implement here to convert, if you want to cover cross-browser compatibility, while just going with .mp4. and there are much more refined media libraries on the server, but i dunno what language you are using, so lets stick with frontend.
you're going to want to read the notes at the bottom of the page, after the tabular cross-browser data (sorry, not frag identifier) https://developer.mozilla.org/en-US/docs/HTML/Supported_media_formats
Upvotes: 1