Flowplayer 仅适用于本地主机。在服务器上不起作用
我在正确设置 Flowplayer 时遇到了一些问题。当我在本地主机上工作时,一切似乎都工作正常,但是当我将站点复制到服务器时,播放器将无法正确加载。
调整锚标记的大小以设置参数并填充对象标记,但不显示任何内容。有趣的是,当带有 flowplayer 的页面的一部分位于 firebug 后面或调整浏览器窗口大小时,播放器会正确加载。 我该如何解决这个问题?
我用以下代码加载播放器:
$(document).ready(function() { $f("movie", {src: "public/flash/flowplayer.swf", wmode: "transparent"}, {
clip: {
autoPlay: false,
autoBuffering: true
}
}
); });
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
}
}
); });
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在与 FlowPlayer 相同的文件夹中创建一个 htaccess 文件
Options +FollowSymLinks
RewriteEngine on
重写规则。 - [E=no-gzip:1]
对我有用。
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.