..." />

Embedding a youtube video using haml/ruby on rails?

2 ways, the new and the old: Save the id of the video in @video_id -1. The new with iframe: iframe{:allowscriptaccess => "always", :allowFullScreen => "true", :frameborder => "0", :height => "430", :src => "youtube.com/embed/#{@video_id}", :title => "YouTube video player", :width => "640"} -2. The old with embed: %object{:height => "0", :width => "0"} %param{:name => "movie", :value => "youtube.com/v/#{@video_id}?fs=1&hl=en_US...}" rel="nofollow">youtube.com/v/#{@video_id}?fs=1&hl=en_US... %param{:name => "allowFullScreen", :value => "true"} %param{:name => "allowscriptaccess", :value => "always"} %embed{:allowfullscreen => "true", :allowscriptaccess => "always", :height => "390", :src => "youtube.com/v/#{@video_id}?fs=1&hl=en_US..., :type => "application/x-shockwave-flash", :width => "640"}.

I am not sure I got you correct, But you will be in need of player like flash player or something to render your video in the browser. You may want to look these for reference. Rails 3 embed video Easiest way to embed flash videos in Rails - must be cross browser compatible If you are not looking for this, can you be more specific.

1 He's just trying to embed YouTube's player, so he doesn't need his own flash player like you said – iWasRobbed Jul 19 at 23:02.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions