I was using a Flash video player within a previous Rails version app
Moving to Rails 3.1.0 , I dob't know where I should put the script ...

I tried to move it into an  app asset sub-directory
assets
- jwplayer
-  - player.swf
but this raises an error

"NetworkError: 406 Not Acceptable - 
http://localhost:3000/assets/jwplayer/player.swf";
player.swf

the flash script is given as a parameter within an
'fw_player.js.erb'  partial :

jwplayer('containerLocker').setup({
'id': 'containerLocker', 'width': '480', 'height': '270','logo.hide' :
'false',
'logo.position' : 'top-right', 'file': "<%=
escape_javascript( first_valid_clip_url(@clips) ) -%>",
'type' : 'video', 'streching' : 'uniform' , 'smoothing' : 'true',
'controlbar.position' : 'bottom', 'controlbar.autohide' : 'true',
'image' : '/assets/splash_image.jpg',
'modes': [ {'type' : 'html5'}, {'type' : 'flash', 'src' : '/assets/
jwplayer/player.swf'},{'type' : 'download'}],
'logo.file' : '/assets/logos/myapp_outline.png' });

thanks for you suggestions

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to