problem ... volume control - music player

Discussion in 'HTML & Website Design' started by 1mak, Feb 22, 2007.

  1. #1
    hi,

    i have a problem with a music player, i try to put to my web site.


    i was looking for a player with simple "play", "still" und "stop"-functions and a drop-down-list of songs.


    the problem is, that the player i have found, has no volume control. so does anybody know how to solve that????


    here my player


    http://highshare.info/try.html



    ------------------------------


    here the code:

    <object id="multiplayer" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"; type="application/x-oleobject" height="0" standby="Loading Microsoft Windows Media Player components..." width="0" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
    <param NAME VALUE>
    <param NAME="ShowControls" VALUE="1">
    <param NAME="ShowStatusBar" VALUE="0">
    <param NAME="ShowDisplay" VALUE="0">
    <param NAME="DefaultFrame" VALUE="Slide">
    <param NAME="Autostart" VALUE="0">
    <param NAME="Loop" VALUE="True">
    </object>
    <form name="form">
    <select name="playlist" size="1">

    <!-- Add song info here -->
    <option value="0">BH Radio 1 (Sarajevo)</option>
    <option value="1">Big Radio 1 (Banja Luka)</option>
    <option value="2">SONG TITLE-ARTIST NAME</option>
    <option value="3">SONG TITLE-ARTIST NAME</option>
    <option value="4">SONG TITLE-ARTIST NAME</option>
    <option value="5">SONG TITLE-ARTIST NAME</option>

    </select>



    <input TYPE="BUTTON" NAME="multiplay" VALUE="play" OnClick="play(document.forms['form'].playlist);">
    <input TYPE="BUTTON" NAME="multipause" VALUE="pause" OnClick="document.multiplayer.pause(); playstate=2;">
    <input TYPE="BUTTON" NAME="multistop" VALUE="stop" OnClick="document.multiplayer.stop(); playstate=2;"></p>
    </form>

    <script language="JavaScript">
    <!--
    var playstate = 1;
    shuffle = 1; // Set to 0 to always play first song in list
    // Set to 1 to randomly choose the first song to play
    songs=new Array();

    // Add song URLs here
    songs[0]="http://www.pbsbih.ba/real/bhr1uzivo.ram";;
    songs[1]="http://www.bigradiobl.com/stream/big1.asx";;
    songs[2]="SONG URL";
    songs[3]="SONG URL";
    songs[4]="SONG URL";
    songs[5]="SONG URL";

    if (shuffle == 1) {
    var randsg = Math.floor(Math.random()*songs.length);
    document.multiplayer.FileName = songs[randsg];
    document.multiplayer.scr = songs[randsg];
    document.forms['form'].playlist.options[randsg].selected = true;
    }
    function play(list) {
    if (playstate == 2) {
    document.multiplayer.Play();
    } else {
    var snum = list.options[list.selectedIndex].value
    document.multiplayer.FileName = songs[snum];
    document.multiplayer.scr = songs[snum];
    }
    playstate = 1;
    }
    //-->
    </script>
    <!-- end code multi music player -->


    -------------------------------


    all i need is volume control ///:



    hope you can help me.



    lg
    marko
     
    1mak, Feb 22, 2007 IP