Topic: HTML5 and Webrick Ruby Server not Showing
Ok, guys I have this weird problem, making HTML5 video working on my production server Webrick (my Ruby Application). So the HTML code is simply this:
<video width="560" height="330" controls="controls" autobuffer="autobuffer">
<source src="/videos/final_video.m4v" type="video/mp4" />
<!-- <source src="/videos/video.ogv" type="video/ogg" /> -->
</video>
Is there something wrong with webrick? I used mongrel, and I get the same problem. now if I just create an empty HTML file and pu the same video code in, and open it with firefox, it works fine... Any suggestions please?
I got this in my "application.rb"
...
#HTML5 Video !!!
config.assets.paths << "#{Rails.root}/public/videos"
...
and I got my videos under :
Ruby_Project/public/videos
One more thing! Mongrel returns me this:
Started GET "/final_video.mp4" for 127.0.0.1 at Fri Feb 10 13:47:36 +0000 2012
ActionController::RoutingError (No route matches [GET] "/final_video.mp4"):
Last edited by alrosh7 (2012-02-10 14:13:38)