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.
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