I recently encountered the same problem as in the project. In my case, fancybox correctly loaded the media player into the modal window. However, a flash player was introduced on IE8, and you could see that the controls are being removed and never replaced.
After viewing the plugin a bit more, it seems that mediaelement is listening for the event triggered by the flash player to initialize the controls for the player. Depending on a number of circumstances, I found that the player emitted this event before the plug-in was called, which means that the plug-in never determined that the player was ready.
The fix for me was to explicitly set the flashName parameter to the swf path. Then I just deleted the markup of the objects from my source, which allowed the plugin to create it.
Explicit swf path setup:
<script> $(document).ready(function(){ $('video').mediaelementplayer( { flashName: '/path_to_mediaelement_swf/flashmediaelement.swf', }); }); </script>
Video Source:
<video width="320" height="240" poster="poster.jpg" controls="controls" preload="none"> <source type="video/mp4" src="myvideo.mp4" /> <source type="video/webm" src="myvideo.webm" /> <source type="video/ogg" src="myvideo.ogv" /> <track kind="subtitles" src="subtitles.srt" srclang="en" /> <track kind="chapters" src="chapters.srt" srclang="en" /> </video>
Hope this helps!
source share