WMA and collapsing player

Discussion in 'Windows Media Player' started by Paul Jopher, Sep 4, 2004.

  1. Paul Jopher

    Paul Jopher Guest


    I am playing simple Windows Media Audio files on my site with the following
    object info:

    STANDBY="Loading Microsoft Windows Media Player components..."
    <PARAM NAME="fileName" VALUE="http://mysite.com/soundfile.wma">
    <PARAM NAME="animationatStart" VALUE="true">
    <PARAM NAME="transparentatStart" VALUE="true">
    <PARAM NAME="autoStart" VALUE="true">
    <PARAM NAME="showControls" VALUE="true">

    The files play fine, but the player collapses after it starts so that only
    the controls can be seen. I want the player to remain open so that the visual
    screen and the images that respond to the audio can be seen. Is this
    possible? Is there a PARAM NAME that I can use to keep the player from

    Paul Jopher, Sep 4, 2004
    1. Advertisements

  2. You haven't specified a width and height for the players object tag.
    Does it work properly if you do so ?

    Cheers - Neil

    On Fri, 3 Sep 2004 23:23:05 -0700, "Paul Jopher" <Paul
    Neil Smith [MVP Digital Media], Sep 4, 2004
    1. Advertisements

  3. Paul Jopher

    Paul Jopher Guest

    Bingo! Thank you very much, Neil.

    Now that the player is the right size, how can I put something into the
    screen. It's just an audio file, so that it's only showing a black screen. Is
    there a way of inserting some gif or jpeg into the screen? Or how about
    showing those funky patterns that shape themselves around the audio as it
    plays? Can this only be done with mp3s, or can I do it with my wmas. Thanks.

    Paul Jopher, Sep 4, 2004
  4. I think if you mean visualisations, I don't remember if the Media
    player 6.4 activeX control you've used supports visualisations.

    If you use the embedding code for media player 7 or 9, and play an
    audio file I think it will use your default visualisation, but there's
    no simple way to change or download a visualisation to be used instead
    on player 6.4.

    If you want to muck about with this, you need to investigate the
    online documentation for 'windows media download packages' (.wmz
    files) and then the media player Skins documentation, and particularly
    the 'Effects' attribute of skin files.

    In your case, for simplicity, I'd try to set up a table with the top
    cell having a static GIF or JPEG in it, and the lower cell having just
    the media player sized to show the controls. So, reverse what you've
    just done in making the player full size, and make it 1/2 height or
    less, whatever you need to just get the controls to show completely
    without cropping.

    Cheers - Neil
    Neil Smith [MVP Digital Media], Sep 4, 2004
  5. Paul Jopher

    Paul Jopher Guest

    Thanks a lot, Neil. You've been a big help. I've already followed your
    suggestion and inserted a gif about the player controls and it looks great.

    Just out of curiosity, how do I use the embedding code for WMP 7 or 9? Do I
    change the class ID? If I do this, does this mean that someone who only has
    6.4 installed cannot listen to my audio files? Will they be prompted for an
    update if this is the case?

    Paul Jopher, Sep 4, 2004
  6. There are slight changes to both the classid and parameters.
    Specirfically you use URL rather than File, and a few other things go
    away (they're not available any more) such as animationAtStart and
    transparentAtStart : Try this and see how it works out :

    <object id="video"
    type="application/x-oleobject" width="176" height="144">
    <param name="autostart" value="0">
    <param name="showcontrols" value="1">
    <param name="uimode" value="mini">
    <param name="stretchtofit" value="1">
    <param name="volume" value="80">
    <param name="EnableContextMenu" value="0">

    You may find with the player 7/9 control, you have to use CSS clipping
    regions if the player displays the visualisation area while you are
    playing audio only files.

    Also, from the SDK documentation : "The following values are supported
    for use with the name attribute of the PARAM element. "


    Cheers - Neil
    Neil Smith [MVP Digital Media], Sep 4, 2004
  7. Neil Smith [MVP Digital Media], Sep 4, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.