-if input.video_file
  -video_file = input.video_file
  %video{:controls => "controls", :poster => video_file.poster.large.url, :style => "width:100%" }


    -if video_file.mpg?
      %source{:src => video_file.mpg.url, :type => "video/mp4"}
    -if video_file.webm?
      %source{:src => video_file.webm.url, :type => "video/webm"}
    -if video_file.ogg?
      %source{:src => video_file.ogg.url, :type => "video/ogg"}
  
  

    <object type="application/x-shockwave-flash" data="/player/flowplayer-3.2.1.swf" width="640" height="360">
    <param name="movie" value="/player/flowplayer-3.2.1.swf">
    <param name="allowFullScreen" value="true">
    <param name="wmode" value="transparent">
    <param name="flashVars" value="config={'playlist':['http%3A%2F%2Fsandbox.thewikies.com%2Fvfe-generator%2Fimages%2Fbig-buck-bunny_poster.jpg',{'url':'http%3A%2F%2Fclips.vorwaerts-gmbh.de%2Fbig_buck_bunny.mp4','autoPlay':true}]}">
  
    =image_tag video_file.poster.large.medium.url, :alt => video_file.title, :title => "No video playback capabilities, please download the video below", :width => "640", :height => "360"
  
    </object>
=link_to "video en mp4", video_file.mpg.url