开发者

Rails 3.1 Asset Pipeline Woes

I am using JW Player to play streaming audio files. I have built a custom skin but can't get the player to show up. When you build your custom skin, you zip up the skin along with the skin.xml file (where the flash reads for its image files and other settings) and then you point the javascript config object to point to that skin zip file.

jw = {
                    'flashplayer':'/assets/player.swf',
                    'controlbar': '开发者_运维百科top',
                    'autostart': 'false',
                    'width':'400',
                    'height':'49',
                    'playlist': '[]',
                    'skin':'/assets/skin.zip',
                    'dock':'false',
                    'wmode':'transparent'
                }
                jwplayer('player').setup(jw);

For some reason the player does not show up on staging or prod envrionments, however, I can download the zip file from the browser. Would the new Rails 3.1 asset pipeline have anything to do with this?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜