Easiest way to embed flash videos in Rails - must be cross browser compatible -


I need to embed flv, mp4 and other potential videos in a RL 2.3.5 application.

I have a lot of problems showing the video in Safari 5 and Firefox 3.5.

Is there an easy way to get a cross-browser video player and embed it in a Rail app?

I tried swfobject 1.5 and 2.2 with jw_player, and no results.

I used the 2.3.5 application JW player in Rail Rail Plugin.

It's easy to use:

  1. Install plug-ins
  2. Run the rake jade-player:
  3. In your layout
  4. Enter
     and lt;% = javascript_include_tag 'swfobject'%> 
  5. You can then use the following accessory:
     & lt; % = Player ({: file => path_to_flv}, {: width => 680 ,: height => 420})%> 

I got it in Firefox 3.6.8 Tested, Opera, Chrome 5 and Safari 5 and it's working well ...


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -