I need something that works like videojs that supports native HTML5 when possible, and falls back to flash on browsers that don’t support h264 natively. I have videojs working, but because I also need to support MP3 files (not supported by videojs), I thought I would try out mediaelementjs.
Reading the mediaelementjs web site, it looks like this should work, but it’s not clear to me whether the flash player will actually play h264 or not. It seems like I may need to include different codecs, which I definitely don’t want to do. I want to encode only to h264, and use a player that will play them with flash if the browser doesn’t support that codec, and use HTML5 if the browser does.
Any advice?
I’ve used mediaelementjs several times and IMHO, I think it’s the best way to offer cross-browser support for videos.
A single MP4 file can be used to either play in the native
videoelement or it will be played via the SWF.