I’m using the video_tag helper to generate a html5 video element with
some local videos as a source:
<%= video_tag [‘video.mp4’, ‘video.ogv’, ‘video.webm’], :controls =>
true, :size => ‘300x180’, :id => ‘video’ %>
(My video files are located in public/videos)
The video element seems correctly generated but the video does not
appear in my web page (Firefox 4). I get a player with a gray cross.
Firstly, I thought that it came from bad codecs but when I specify
remote http resources, that works:
<%= video_tag [‘http://site.com/video.mp4’, ‘http://site.com/video.ogv’,
‘http://site.com/video.webm’], :controls => true, :size => ‘300x180’,
:id => ‘video’ %>
That looks like a (local) path problem…
Sincerely,
Fabrice