Recent Topics

1 Mar 19, 2007 23:25    

My b2evolution Version: Not Entered

Okay -- here is what I want to do:

1. I want to place the following code into a post that will also insert the player into the post. It works fine with Opera and IE but FF hates it. Here is the code:

<html>
<head>
<title>Parchment Podcast</title>
</head>
<body bgcolor="000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="middle">
<!-- START WIMPY PLAYER CODE -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" width="240" height="420" id="wimpy" align="center">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="http://parchment.hamptonroadsradio.com/podcasts/wimpy.swf" />
<param name="loop" value="false" />
<param name="menu" value="false" />

<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="000000" />
<param name="flashvars" value="wimpyApp=http://parchment.hamptonroadsradio.com/podcasts/wimpy.php&wimpySkin=http://parchment.hamptonroadsradio.com/podcasts/skin_tube.xml&autoAdvance=no&defaultImage=http://www.theparchment.org/img/parchment3.jpg&startupLogo=http://www.theparchment.org/img/parchment3.jpg" />
<embed src="http://parchment.hamptonroadsradio.com/podcasts/wimpy.swf" flashvars="wimpyApp=http://parchment.hamptonroadsradio.com/podcasts/wimpy.php&wimpySkin=http://parchment.hamptonroadsradio.com/podcasts/skin_tube.xml&autoAdvance=no&defaultImage=http://www.theparchment.org/img/parchment3.jpg&startupLogo=http://www.theparchment.org/img/parchment3.jpg" loop="false" menu="false" quality="high" width="240" height="420" scale="noscale" salign="lt" name="wimpy" align="center" bgcolor="000000" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- END WIMPY PLAYER CODE -->
	</td>
  </tr>
</table>
</body>
</html>

Now if I simply place the player code into a post without the html formatting as such:

<!-- START WIMPY PLAYER CODE -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" width="240" height="420" id="wimpy" align="center">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="http://parchment.hamptonroadsradio.com/podcasts/wimpy.swf" />
<param name="loop" value="false" />
<param name="menu" value="false" />

<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="000000" />
<param name="flashvars" value="wimpyApp=http://parchment.hamptonroadsradio.com/podcasts/wimpy.php&wimpySkin=http://parchment.hamptonroadsradio.com/podcasts/skin_tube.xml&autoAdvance=no&defaultImage=http://www.theparchment.org/img/parchment3.jpg&startupLogo=http://www.theparchment.org/img/parchment3.jpg" />
<embed src="http://parchment.hamptonroadsradio.com/podcasts/wimpy.swf" flashvars="wimpyApp=http://parchment.hamptonroadsradio.com/podcasts/wimpy.php&wimpySkin=http://parchment.hamptonroadsradio.com/podcasts/skin_tube.xml&autoAdvance=no&defaultImage=http://www.theparchment.org/img/parchment3.jpg&startupLogo=http://www.theparchment.org/img/parchment3.jpg" loop="false" menu="false" quality="high" width="240" height="420" scale="noscale" salign="lt" name="wimpy" align="center" bgcolor="000000" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- END WIMPY PLAYER CODE -->

Opera and IE are fine -- FF hates it.

2. I want to create a link to a popup player -- with the dimensions of the player --

IS there a solution?

Thanks!

2 Mar 27, 2007 04:23

1. The <embed> tag is not XHTML and doesn't work in FF.

2. No, you can't ask a player how big it is (through javaScript e.g.) because it is located on another server and you are not able to (allowed to) execute your scripts and work on data on this other server.

For another project with a similar problem I made up this solution. Mind you, I didn't test it, but I don't see why it shouldn't work. Try this:
Make a page on your server, similar to the html you showed previously. This html has the player loaded. Now it's on your site and you can ask it through javaScript how big it is. In your read world site you can now make your popup with the appropriate size.
The major drawback of this solution is that it needs the player to load twice. That will take (too much) time.


Form is loading...