开发者

Flowplayer only works on localhost. Doesn't work on server

I have a bit of a problem with setting flowplayer right. When I worked on localhost everything seemed to work fine but when I copied my site to server player won't load properly.

The anchor tag开发者_如何学编程 is re-sized to set parameters and is filled with object tag but nothing is displayed. Interesting thing is that when part of page with flowplayer is behind firebug or browser window is re-sized then player loads properly. How I can fix this problem ?

I load player with this code:

$(document).ready(function() { $f("movie", {src: "public/flash/flowplayer.swf", wmode: "transparent"}, {
  clip: {
          autoPlay: false,
          autoBuffering: true
         }                          
   }           
); });


make a htaccess file in the same folder as your flowplayer is

Options +FollowSymLinks
RewriteEngine on
RewriteRule . - [E=no-gzip:1]

that worked for me.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜