homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Site Graphics and Multimedia Design
Forum Library, Charter, Moderators: not2easy

Site Graphics and Multimedia Design Forum

Windows Media Player Embedding Issue

5+ Year Member

Msg#: 3437908 posted 8:20 am on Aug 31, 2007 (gmt 0)


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.



5+ Year Member

Msg#: 3437908 posted 7:13 am on Sep 1, 2007 (gmt 0)

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Site Graphics and Multimedia Design
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved