Results 1 to 3 of 3

Thread: music player in FF?

  1. #1
    Join Date
    Aug 2006
    North Las Vegas, Nevada
    Thanked 0 Times in 0 Posts

    Default music player in FF?

    recently ive done a bit of changes in my site i made for me and my friends but one of the problems i seem to have run into is the fact that the music player i use changes shape and the sound doesnt play which is just a big let down for my friends that use FF instead of IE. well, heres the code i use for my player aside from 2 of the song links since im kinda picky with who i let listen to those (and heres the link to the index to which the player is in on the side labeled "Music Player"

    <title>Shu's Musical Fix</title>
    <body background="">
    <object id="darkplayer" codeBase=",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="0">
     <param NAME="ShowStatusBar" VALUE="0">
     <param NAME="ShowDisplay" VALUE="0">
     <param NAME="DefaultFrame" VALUE="Slide">
     <param NAME="Autostart" VALUE="1">
     <param NAME="Loop" VALUE="True">
    <form name="form">
     <p style="text-align: center">
     <select style="FONT-SIZE: 8pt; BACKGROUND:#FFFFFF; WIDTH: 160; COLOR: #00000; font-face: verdana; height:174" name="playlist" size="1">
     <option value="0">Days</option>
     <option value="1">A la faveur de l'automne</option>
     <option value="2">Cats on Mars</option>
     <option value="3">Waltz for Venus</option>
     <option value="4">After Love</option>
     <option value="5">Bonnie and Clide</option>
     <option value="6">Love Mode</option>
     <option value="7">Fill This Night</option>
     <option value="8">Jin's Song</option>
     <option value="9">Lonely Roling Star</option>
     <option value="10">Bon Bon Bereppa</option>
     <option value="11">San Francisco</option>
     <input TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);">
     <input TYPE="BUTTON" NAME="darkpause" VALUE="pause" OnClick="document.darkplayer.pause(); playstate=2;">
     <input TYPE="BUTTON" NAME="darkstop" VALUE="stop" OnClick="document.darkplayer.stop(); playstate=2;"></p>
    <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
       // unlimited songs, just copy and paste the song line and change the number
    songs=new Array();
    if (shuffle == 1) {
    var randsg = Math.floor(Math.random()*songs.length);
    document.darkplayer.FileName = songs[randsg];
    document.darkplayer.scr = songs[randsg];
    document.forms['form'].playlist.options[randsg].selected = true;
    function play(list) {
    if (playstate == 2) {
    } else {
    var snum = list.options[list.selectedIndex].value
    document.darkplayer.FileName = songs[snum];
    document.darkplayer.scr = songs[snum];
    playstate = 1;
      <a href="" target="_blank"><font color="#FFFF66">Official 
      Downloady Thread</font></a>
    function SiteStats_5007(){
    var t=new Date();
    var u=''+escape(location.href)+';r='+escape(document.referrer)+';t='+t.getTime();
    var I=new Image(1,1);  I.src=u;
    //--></script><noscript><img src=;;t=5007; width=1 height=1></noscript>
    what im trying to do later on is build a browser sniffer so my FF friends can get a music player that they can listen to and my IE friends get the one that i originally put up.

    is there even such a thing that FF uses thats similar to the player i use now? if not, is there any alternative anyone can suggest?

  2. #2
    Join Date
    Jun 2006
    Thanked 14 Times in 14 Posts


    classid attribute must be removed for firefox. It's better to do that with browser detection because IE still needs it. Also the type attribute must be set to "application/x-mplayer2".

    Anyway you can't control (play, pause, stop) the player in firefox. You could try Flash but it only plays mp3's.
    Last edited by DimX; 08-22-2006 at 06:41 PM.

  3. #3
    Join Date
    Aug 2006
    North Las Vegas, Nevada
    Thanked 0 Times in 0 Posts


    tried it out but it still seems to be in the same condition when i try it out in FF >_< but thanks for the help

    *edit in responce to an edit*

    aah, i actually thought about making a player in flash. regretfully i lack the skills yet to make one. not to mention that flash has a habbit of screwing with the files i put in it. (either it wont recognise it or it'll play it over and over again regardless of wether you press stop. then plays a different instance of the same file over the one already playing to cause quite the headache)

    by not being able to control play, pause and stop, do you mean that it will still play but the controls will be invalid?
    Last edited by SaishuHane; 08-22-2006 at 06:55 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts