Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    FL, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Live Music Control

    Hello All,

    Long time no see

    Okay right now I can control WMP with the following codes (in IE)

    document.player.controls.stop();
    document.player.controls.play();

    ect...

    Now when I run this code in Firefox It won't work. So I decided to try and use netscape type code.

    document.player.stop();
    document.player.play();

    These codes do not work.

    Does ANYONE know what codes that will work in FIREFOX, because this is driving me crazy!

    Thanks for any help provided!
    CYWebmaster.com - See why we dot com!!
    ACJavascripts.com - Cut & Paste Javascripts!
    SimplyProgram.com - Personal Blog

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    FL, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Update,

    Okay I am using this code:
    document.getElementbyId("player").Stop();

    I recieve this error:
    Error: document.getElementById("player").Stop is not a function
    Source File: file:///C:/AC/CustomScripts/charlotte/templates/playtime_controls.html
    Line: 5

    Does anyone know what I am doing wrong?
    CYWebmaster.com - See why we dot com!!
    ACJavascripts.com - Cut & Paste Javascripts!
    SimplyProgram.com - Personal Blog

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I've never tried to control the wmp control using javascript frankly because I haven't found or heard of any javascript that was able to, but if you gave us a link that we could work with, we might be able to figure something out.

  • #4
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Apparently, this requires the "The Gecko ActiveX Component", according to the following article: The Windows Media ActiveX Control Not Just for Internet Explorer Anymore
    *this message will self destruct in n-seconds*

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    FL, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Okay this makes sense now, I do not have activeX controls installed for firefox.

    I located this page:
    http://www.iol.ie/~locka/mozilla/plugin.htm

    Now I know this is a stupid question, but what version should I download.

    I looked at the "about Firefox" display and it says FireFox 1.0.2.


    Thanks for all the help!
    CYWebmaster.com - See why we dot com!!
    ACJavascripts.com - Cut & Paste Javascripts!
    SimplyProgram.com - Personal Blog

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Their plugins are outdated, it says the firefox 1.0 version doesn't work for any other version of FF, but FF is up to 1.0.3 it might work so I guess you can give it a try.

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    FL, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmm, well that doesn't seem to do the trick.

    This is weird, when I go to say live365.com their radio does not play either, it justs asks me to download the .js scripts.

    So I think its just me, but if other users "just" download firefox they will have the same issue.

    This is the code I have now:

    Code:
    <EMBED type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' name='player' id='player' displaysize='0' autosize='-1' bgcolor='darkblue' showcontrols="false" showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="0" height="0" src="LINK" autostart="true" designtimesp='5311' loop="false" enablejavascript="true">
    </EMBED>
    and for javascript:

    Code:
    function stop_player(){
    document.player.Stop();
    }

    Any ideas?
    CYWebmaster.com - See why we dot com!!
    ACJavascripts.com - Cut & Paste Javascripts!
    SimplyProgram.com - Personal Blog

  • #8
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    it seems that stop is only a function in IE

  • #9
    Regular Coder
    Join Date
    Jun 2002
    Location
    FL, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It works in netscape. So I guess Firefox just doesn't work with these functions yet.

    Oh well, thanks everyone for the help I truly appreciate it!
    CYWebmaster.com - See why we dot com!!
    ACJavascripts.com - Cut & Paste Javascripts!
    SimplyProgram.com - Personal Blog


  •  

    Posting Permissions

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