johndyer/mediaelement — Issue #389: Doesn't work in IE7, IE8 when loaded through RequireJS
Author: derimer
Created: 2012-02-13 23:03:34+00:00
State: open

Just had a problem with loading MediaElement using RequireJS. It didn't work in older browsers like IE7, IE8 which do not support HTML5 video tag. Example I used:

require(["mediaelement/mediaelement-and-player"], function(){
$('video').mediaelementplayer();
});

Solution is to create HTML5 elements manually

document.createElement('video');
document.createElement('audio');
document.createElement('source');

or use HTML5 Shiv https://github.com/aFarkas/html5shiv