play MP3 in a popup window using Media Player in small player mode

Discussion in 'Windows Media Player' started by Dennis - San Diego, Sep 12, 2006.

  1. If you have a song and the path is:, what is the correct way to hyperlink a
    button to make this play in it's own window and play as a minimized Windows
    Media Player? It needs to contain all the instructions to pop up a new
    window that is small - just large enough for the Media Player in the small
    player mode (I don't know what that mode is called - sorry).
    Neil - - I need help, not a request for information that you could have done
    without by giving me an example. If you can't give me answers, can you point
    me to the source in Microsoft that details this type of information?
    Thank you.
    Dennis - San Diego, Sep 12, 2006
    1. Advertisements

  2. As I said, nobody can *guess* what you've done so far, so the best
    option is to work with what you've done and improve it.

    The reason for that is so that you gain an understanding of what's
    needed to make the player work, and not just for me to spoon feed you
    some cut and paste script which breaks as soon as you change
    something, which means you're back here for help.

    Here's the spoon fed version :
    Popup page "popup.html"

    <title>MP3 Player</title>
    <object id="MediaPlayer"
    type="audio/mp3" width="200" height="40">
    <param name="url" value="myfile.mp3" />
    <param name="autostart" value="1" />
    <param name="showcontrols" value="0" />
    <param name="uimode" value="mini" />
    <param name="enablecontextmenu" value="1" />

    Calling page "mypage.html"

    <script language="javascript1.2" type="text/javascript">
    function openMiniPlayerWindow() {"popup.html", "myplayer", "width=250, height=80,
    directories=no, location=no, resizable=no, scrollbar=no, menubar=no,
    status=no, toolbar=no", false);

    <a href="#" onclick="openMiniPlayerWindow(); return false"
    title="Open audio track in popup">Play MP3 Audio</a>


    Cheers - Neil
    Neil Smith [MVP Digital Media], Sep 12, 2006
    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.