嵌入 flash Wimpy 播放器,使其在 Firefox 中运行

发布于 2024-07-12 12:50:17 字数 2533 浏览 5 评论 0原文

有人可以帮助我让 Wimpy 播放器在 Firefox 中工作吗? 我按照 Wimpy 文档页面 中的指南进行操作,但仍然一无所获。

对于测试,我使用相同的 HTML 代码来嵌入不同的 swf 文件,并且效果完美。 难道是SWF文件本身损坏了? 那为什么它在 IE 上运行得很好呢?

这是一个包含两个 Flash 对象的测试 HTML 代码。 左边的是Wimpy,另一个只是一个例子。 目前只有正确的一个出现。

这是我用来嵌入它的代码:

<object width="185" height="292" id="wimpy" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0">
<param name="allowscriptaccess" value="always"></param>
<param name="allownetworking" value="all"></param>
<param name="movie" value="http://www.blastbeat.tv/upload/mp3s/wimpy.swf"></param>
<param name="loop" value="false"></param>
<param name="menu" value="false"></param>
<param name="quality" value="high"></param>
<param name="scale" value="noscale"></param>
<param name="align" value="center"></param>
<param name="salign" value="lt"></param>
<param name="bgcolor" value="ffffff"></param>
<param name="wmode" value="transparent"></param>
<param name="flashvars" value="wimpyApp=http://www.blastbeat.tv/upload/mp3s/wimpy.sql.ed.php&wimpySkin=http://www.blastbeat.tv/upload/mp3s/skin_blackpod8.xml&useMysql=yes&queryValue=21&queryWhere=user_id&startPlayingOnload=no&randomOnLoad=yes&loopPlaylist=all&popUpHelp=no&trackPlays=http://www.blastbeat.tv/upload/mp3s/trackscript.php&scrollInfoDisplay=yes"></param>
<embed width="185" height="292" scale="noscale" src="http://www.blastbeat.tv/upload/mp3s/wimpy.swf"
    allowscriptaccess="always"
    allownetworking="all"
    loop="false"
    menu="false"
    quality="high"
    scale="noscale"
    align="center"
    salign="lt"
    bgcolor="ffffff"
    wmode="transparent"
    flashvars="wimpyApp=http://www.blastbeat.tv/upload/mp3s/wimpy.sql.ed.php&wimpySkin=http://www.blastbeat.tv/upload/mp3s/skin_blackpod8.xml&useMysql=yes&queryValue=21&queryWhere=user_id&startPlayingOnload=no&randomOnLoad=yes&loopPlaylist=all&popUpHelp=no&trackPlays=http://www.blastbeat.tv/upload/mp3s/trackscript.php&scrollInfoDisplay=yes"
    name="wimpy"
    type="application/x-shockwave-flash"
></embed>

Can somebody help me getting Wimpy player to work in Firefox? I followed the guide from Wimpy documentation page and am still getting nowhere.

For tests, I used the same HTML code to embed different swf file and it works perfectly. Could it be the SWF file corrupted itself? Then why it works fine on IE?

Here is a test HTML code with two flash objects. The left one is Wimpy and the other is just an example. Currently only the right one shows up.

This is the code I use to embed it:

<object width="185" height="292" id="wimpy" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0">
<param name="allowscriptaccess" value="always"></param>
<param name="allownetworking" value="all"></param>
<param name="movie" value="http://www.blastbeat.tv/upload/mp3s/wimpy.swf"></param>
<param name="loop" value="false"></param>
<param name="menu" value="false"></param>
<param name="quality" value="high"></param>
<param name="scale" value="noscale"></param>
<param name="align" value="center"></param>
<param name="salign" value="lt"></param>
<param name="bgcolor" value="ffffff"></param>
<param name="wmode" value="transparent"></param>
<param name="flashvars" value="wimpyApp=http://www.blastbeat.tv/upload/mp3s/wimpy.sql.ed.php&wimpySkin=http://www.blastbeat.tv/upload/mp3s/skin_blackpod8.xml&useMysql=yes&queryValue=21&queryWhere=user_id&startPlayingOnload=no&randomOnLoad=yes&loopPlaylist=all&popUpHelp=no&trackPlays=http://www.blastbeat.tv/upload/mp3s/trackscript.php&scrollInfoDisplay=yes"></param>
<embed width="185" height="292" scale="noscale" src="http://www.blastbeat.tv/upload/mp3s/wimpy.swf"
    allowscriptaccess="always"
    allownetworking="all"
    loop="false"
    menu="false"
    quality="high"
    scale="noscale"
    align="center"
    salign="lt"
    bgcolor="ffffff"
    wmode="transparent"
    flashvars="wimpyApp=http://www.blastbeat.tv/upload/mp3s/wimpy.sql.ed.php&wimpySkin=http://www.blastbeat.tv/upload/mp3s/skin_blackpod8.xml&useMysql=yes&queryValue=21&queryWhere=user_id&startPlayingOnload=no&randomOnLoad=yes&loopPlaylist=all&popUpHelp=no&trackPlays=http://www.blastbeat.tv/upload/mp3s/trackscript.php&scrollInfoDisplay=yes"
    name="wimpy"
    type="application/x-shockwave-flash"
></embed>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

能怎样 2024-07-19 12:50:17

我强烈建议使用 swfobject,它负责检测 Flash 播放器,嵌入该浏览器的正确代码,为您提供了一种提供后备内容的好方法。 而且,它在你的代码中看起来会更干净!

就像这样:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
    <title>SWFObject dynamic embed - step 3</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="swfobject.js"></script>

    <script type="text/javascript">
    swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0");
    </script>

  </head>
  <body>
    <div id="myContent">
      <p>Alternative content</p>
    </div>
  </body>
</html>

I would very much recommend using swfobject, that takes care of detecting the flash player, embedding the proper code for that browser and gives you a nice way to provide fallback content. Also, it'll look alot cleaner in your code!

Like so:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
    <title>SWFObject dynamic embed - step 3</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="swfobject.js"></script>

    <script type="text/javascript">
    swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0");
    </script>

  </head>
  <body>
    <div id="myContent">
      <p>Alternative content</p>
    </div>
  </body>
</html>
仅此而已 2024-07-19 12:50:17

事实证明,我使用的 Wimpy 播放器版本有点过时,无法与 Flash 10 配合使用。这是来自他们的支持页面:

仅限最新版本的 Wimpy
产品与 Flash 插件配合使用
版本 10。

旧版本的 Wimpy 将不再
为已升级的用户工作
Flash 插件版本 10。这是
由于插件更加严格
就这样的方式
Actionscript 代码被解释
在播放器内。

从次要版本号升级是免费的。 升级后,Wimpy 又恢复运行了。

It turned out that Wimpy player version I used was slightly outdated and wouldn't work with Flash 10. This is from their support page:

Only the latest version of Wimpy
products work with Flash plugin
version 10.

Older versions of Wimpy will no longer
work for users who have upgraded their
Flash Plugin to version 10. This is
due to the plugin being more strict
with respect to the way that
Actionscript code is interpreted
within the player.

Upgrade from minor version number is free. After upgrading Wimpy is back again in operation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文