Ruby on Rails Sunday, January 2, 2011

On Jan 2, 5:07 am, Ralph Shnelvar <li...@ruby-forum.com> wrote:
> I have the following HAML code
>
>   ul{ 'id' =>  tutorials_ul }
>     %li
>       %a{'href' => '/videos/create-command-001.swf'}
>         'Edition swf'
>     %li
>       %a{'href' => '/videos/create-command-001.flv'}
>         'Edition flv'
>
> When the user clicks on 'Edition swf' the video plays nicely in
> both FireFox and IE8.  The video replaces the contents of the webpage.
> Clicking the back button restores the webpage.   This is exactly the
> behavior I want.
>
> When the user clicks on 'Edition flv' all that happens is that the video
> downloads (without asking!) without playing.
>
> How can I get the flv to behave like the swf?
>
> - - - -
>
> I have found
>  https://github.com/nazar/jw-playr-hlpr
> and downloaded and installed the plugin.
>
> This gets me close ... but it embeds the video rather than doing what
> swf does.
>
> I guess I could create new webpages ... but I prefer the way
>   %a{'href' => '/videos/create-command-001.swf'}
>     'Edition swf'
> does it.
>
> --
> Posted viahttp://www.ruby-forum.com/.

Colin is right, it is the way the browser handles flv's.

If you want the flv to behave like the swf, you need to embed the flv
in a swf.

If you want to provide a link to the page, I can have a look, and
maybe drop the flv into a swf for you ;)

Paul

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment