Link to home
Start Free TrialLog in
Avatar of majnun
majnun

asked on

Setting windows media object to width and height="0" shrinks player to a single pixel, not completely hidden.

Heres the code:
<OBJECT ID="Player" height="0" width="0"
       CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
      CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
      STANDBY="Loading Microsoft Windows Media Player components..."
      TYPE="application/x-oleobject">
  <PARAM name="autoStart" value="True">
  <PARAM name="volume" value="100">
  <PARAM name="uiMode" value="invisible">
</OBJECT>


But for some reason it just shrinks the player down to a single white pixel. I notice it because my background is black. And I can even right click on the pixel to pull up the players context menu.

How to i completely hide the player?

Thanks in advance!
ASKER CERTIFIED SOLUTION
Avatar of Colosseo
Colosseo
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You could instead use a combination of the following params to hide the player

  <PARAM name="ShowControls" value="0">
  <PARAM name="ShowDisplay" value="0">
  <PARAM name="ShowStatusBar" value="0">

I am trying to find a good reference regards these parameters for you as microsofts

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay/mmp_sdk/paramtags.asp

doesnt seem to mention these

Scott

Avatar of Oneblueconservative
Oneblueconservative

You can also add the following to the OBJECT tag: style="display: none". Like this:

<OBJECT ID="Player" style="display: none" height="0" width="0"
Avatar of majnun

ASKER

Thanks!
Your welcome majnun, glad to help and thanks for the Grade

Regards

Scott