</video>
...
...
Kindly let me know what needs to be done to get videos played in ipad
and iphone using HTML5 and Rails 3.
I first have to ask for clarification: Have you actually tested that the
video is actually compatible with iPad and iPhone (i.e. You've actually
copied the video to an iOS device and played it back)?
I first have to ask for clarification: Have you actually tested that the
video is actually compatible with iPad and iPhone (i.e. You've actually
copied the video to an iOS device and played it back)?
No i have tried the same video using HTML and also using PHP it plays
well in ipad and iphone. Its the same code and video thats not working
in rails.
I first have to ask for clarification: Have you actually tested that the
video is actually compatible with iPad and iPhone (i.e. You've actually
copied the video to an iOS device and played it back)?
No i have tried the same video using HTML and also using PHP it plays
well in ipad and iphone. Its the same code and video thats not working
in rails.
I first have to ask for clarification: Have you actually tested that the
video is actually compatible with iPad and iPhone (i.e. You've actually
copied the video to an iOS device and played it back)?
No i have tried the same video using HTML and also using PHP it plays
well in ipad and iphone. Its the same code and video thats not working
in rails.
also,
Also for your reference when i tried to run like,
Dare, I was able to put together Rails 3.0.3 application using Ruby
1.9.2
without any issues. Furthermore, I didn't have to play with mime type
because this handle by default in Webrick and Nginx. However, this may
not be the case with your configuration. Here's my file:
Is the HTML file an ERB template that lives in the Rails views
directory? What web server are you using?
-Conrad
Thanks, yes its inside my views videos/list.html.erb
Just using webrick for development..
Would it be a lot of trouble for you to try Phusion Passenger
standalone? The should give you an environment more like what you'll
have in production. It would also change up your environment enough to
be an interesting test.
gem install passenger
cd <your project dir>
passenger start
Also, just out of curiosity, have you validated the HTML 5 rendered by
your app with the W3C validator?
Makes no sense, as long as the <video> content is displayed properly
in the html that is generated, it doesn't matter if its rails, php,
python, java, or anything else serving it. browsers read source code
as it is. Rails has nothing to do with your video code.
Here is some sample code of a basic html5 video I use with fallback
support to a flash player for legacy browsers. Do some testing, first
load it in an html in your public folder, if it plays fine in modern
browsers, great. Then load it into a html.erb in your views folder,
make sure everything is routed correctly and configured in your views/
controllers appropriately. If it will load in safari, it will load on
your iphone/pad fine. The below code I've tested and used on all apple
devices, android devices, safari, firefox, chrome, and even older
browsers will default to the fallback flash player, send me a message
if you still don't get it. Remember, it is good practice to code mp4
for webkit browsers, ogg for firefox/opera, and flash flv for IE &
older browsers.
Makes no sense, as long as the <video> content is displayed properly
in the html that is generated, it doesn't matter if its rails, php,
python, java, or anything else serving it. browsers read source code
as it is. Rails has nothing to do with your video code.
Here is some sample code of a basic html5 video I use with fallback
support to a flash player for legacy browsers. Do some testing, first
load it in an html in your public folder, if it plays fine in modern
browsers, great. Then load it into a html.erb in your views folder,
make sure everything is routed correctly and configured in your views/
controllers appropriately. If it will load in safari, it will load on
your iphone/pad fine. The below code I've tested and used on all apple
devices, android devices, safari, firefox, chrome, and even older
browsers will default to the fallback flash player, send me a message
if you still don't get it. Remember, it is good practice to code mp4
for webkit browsers, ogg for firefox/opera, and flash flv for IE &
older browsers.
Hi, do you see anything in the Rails or Passenger/Apache logs?
hi am using webrick & also mongrel.
While using passanger it works fine in ipad, the videos are not played
in ipad /iphone while using webrick / mongrel.
Here is the logs....
Started GET "/videos/list" for 192.168.0.144 at Wed Jan 05 13:31:14
+0530 2011
Processing by VideosController#list as */*
videoplayer_app_development['movie_topics'].find({:topic=>"Naturals"},
{}).limit(-1)
Rendered nodes/_node.xml.builder (7.9ms)
Rendered videos/list.html.erb within layouts/application (22.5ms)
Completed 200 OK in 75ms (Views: 70.2ms)