Dear Friends,
Am in process of building a video player rails application, which is
compatabile to Safari, ipad, iphone device.
I have used below code to render a video and it works fine in safari.
But videos are not played in ipad and iphone.
<video width="560" height="330" controls="controls"
autobuffer="autobuffer">
<source src="/videos/video.ogv" type="video/ogg" />
<source src="/videos/movie.mp4" type="video/mp4" />
</video>
I have tried changing the mime types, in config folder like,
Mime::Type.register "video/mp4", :mp4
Mime::Type.register "video/mp4", :m4v
Rack::Mime::MIME_TYPES.merge!({
".ogg" => "application/ogg",
".ogx" => "application/ogg",
".ogv" => "video/ogg",
".oga" => "audio/ogg",
".mp4" => "video/mp4",
".m4v" => "video/mp4",
".mp3" => "audio/mpeg",
".m4a" => "audio/mpeg"
})
but the issue not fixed yet.
Iam using rails 3.0.0 and ruby 1.87.7
Kindly let me know what needs to be done to get videos played in ipad
and iphone using HTML5 and Rails 3.
Regards,
Jose
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment