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:
- Install plug-ins
- Run the rake jade-player:
- In your layout
- Enter
and lt;% = javascript_include_tag 'swfobject'%>
- 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
Post a Comment