title: Rails MediaElement js flv video not working
body: <p>I used MediaElement js plugin in my rails application for the video player.It is not working for FLV format video.I got an error like this <strong>Error loading this resource</strong>.Below see I wrote my code.How does it solve?</p>
  
  <pre><code> &lt;video width="480" height="350" controls="controls" preload="none"&gt;
        &lt;!-- MP4 for Safari, IE9, iPhone, iPad, Android, and Windows Phone 7 --&gt;
      &lt;source type="video/mp4" src="&lt;%= @featured_video.asset.url %&gt;" /&gt;
  
         &lt;!-- WebM/VP8 for Firefox4, Opera, and Chrome --&gt;
      &lt;source type="video/webm" src="&lt;%= @featured_video.asset.url %&gt;" /&gt;
  
         &lt;!-- Ogg/Vorbis for older Firefox and Opera versions --&gt;
      &lt;source type="video/ogg" src="&lt;%= @featured_video.asset.url %&gt;" /&gt;
  
     Here I tried both format video/flv,video/x-flv but it is not working
      &lt;source type="video/flv" src="&lt;%= @featured_video.asset.url %&gt;" /&gt;
                       or
      &lt;source type="video/x-flv" src="&lt;%= @featured_video.asset.url %&gt;" /&gt;
  
         &lt;!-- Flash fallback for non-HTML5 browsers without JavaScript --&gt;
      &lt;object width="320" height="240" type="application/x-shockwave-flash" data="&lt;%= Rails.root %&gt;/app/assets/javascripts/swf/flashmediaelement.swf"&gt;
        &lt;param name="movie" value="&lt;%= Rails.root %&gt;/app/assets/javascripts/swf/flashmediaelement.swf" /&gt;
        &lt;param name="flashvars" value="controls=true&amp;file= &lt;%= @featured_video.asset.url %&gt;" /&gt;
      &lt;/object&gt;
   &lt;/video&gt;
  </code></pre>