Rails 3.1 assets path for video player Flash script 'player.swf'

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

  • jwplayer
    • player.swf
      but this raises an error

“NetworkError: 406 Not Acceptable -

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

‘id’: ‘containerLocker’, ‘width’: ‘480’, ‘height’: ‘270’,‘logo.hide’ :
‘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

I tried to move the folder jwplayer into images , and used
{‘type’ : ‘flash’, ‘src’ : “<%=
escape_javascript( asset_path(‘jwplayer/player.swf’)) -%>”}

and it rocks … I thought I could create it one level above …
but seems assets pipeline is using only /images /javascripts and /

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs