Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Windows Media Player Embedding Issue



8:20 am on Aug 31, 2007 (gmt 0)

10+ Year Member


I'm having an issue when a user tries to listen to a song, the song plays, but no controls for WMP are visible and there's just a thin vertical line in it's place. Here's the code embedding the streaming objects:

<!-- BEGIN media -->
<object id="wmp" width={WIDTH} height={HEIGHT} classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="FileName" value="{U_SONG}">
<param name="ShowControls" value="1">
<param name="ShowDisplay" value="0">
<param name="ShowStatusBar" value="1">
<param name="AutoSize" value="1">
<embed type="application/x-mplayer2"
src="{U_SONG}" name=MediaPlayer2 showcontrols=1 showdisplay=0 showstatusbar=1 autosize=1 visible=1 animationatstart=0 transparentatstart=1 loop=0 height=70 width=300>
<!-- END media -->

<!-- BEGIN flash -->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0">
<PARAM NAME=movie VALUE="{U_SONG}"><PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=noborder> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#000000>
<EMBED src="{U_SONG}" quality=high scale=noborder wmode=transparent bgcolor=#000000 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
<!-- END flash -->

<!-- BEGIN ram -->
<embed src="{U_SONG}" align="center"
width="275" height="40" type="audio/x-pn-realaudio-plugin" console="cons"
controls="ControlPanel" autostart="false"></embed>
<!-- END ram -->

There should be 3 options if it detects that a user does not have the required plugin is what I'm thinking this does... but not sure. I'm also thinking the problem has something to do with WMP pointing to the wrong version or something. Any ideas? Thanks.


7:13 am on Sep 1, 2007 (gmt 0)

10+ Year Member

I removed the height from the windows media player object and it fixed the issue.

Featured Threads

Hot Threads This Week

Hot Threads This Month