Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 26
  1. #1
    Join Date
    Aug 2003
    Posts
    13

    Grin Launching windows CD Player?

    I've searched the forum, and can't find any answers. Curious if anyone can help...
    How do I (or can I) Launch windows cd player and have it start playing the audio tracks on my cd?
    Thanks for the help.
    brian

  2. #2
    Join Date
    Nov 2000
    Location
    Las Vegas, Nevada
    Posts
    519

    Re: Launching windows CD Player?

    I am hardly the code guy around here...but, my experience is that you have to include a specific player if you want a specific player to play your sound files. Most computer assign a 'program' to open certain types of files. I.e. Music Match opens my audio files...


  3. #3
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: Launching windows CD Player?

    Using the FILE > OPEN action will cause a file to get opened in it's default viewer, just point it to the file, i.e. MP3 or M3U or any other type...

    Corey Milner
    Creative Director, Indigo Rose Software

  4. #4
    Join Date
    May 2003
    Posts
    130

    Re: Launching windows CD Player?

    If you want a less bulky version of Media Player to open, you can instead launch:

    c:\program files\windows media player\mplayer2.exe /play %SrcDrv%

    that will play CD music (not mp3's), starting from track 1 on the drive that the CD with your AMS app is currently in.

  5. #5
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: Launching windows CD Player?

    Cool tip Adam...

    Corey Milner
    Creative Director, Indigo Rose Software

  6. #6
    Join Date
    May 2003
    Posts
    130

    Re: Launching windows CD Player?

    [img]/ubbthreads/images/icons/smile.gif[/img]

  7. #7
    Join Date
    Aug 2003
    Posts
    13

    Re: Launching windows CD Player?

    So would you use the file/execute action? and type in c:\program files\windows media player\mplayer2.exe /play %SrcDrv% under the "File to execute" Parameter.
    And do you type anything in the "Command Line Argument"
    and "Working directory" parameters?
    Thanks,
    brian


  8. #8
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: Launching windows CD Player?

    Neither of those apply in this case.

    Corey Milner
    Creative Director, Indigo Rose Software

  9. #9
    Join Date
    Aug 2003
    Posts
    13

    Re: Launching windows CD Player?

    Corey,
    The project that I'm working on has audio tracks(cd), and multimedia content. When the initial menu pops up, the first choice the user has is a button that says, "Listen to cd". What do I do in this buttons actions to have it start playing the audio portion of the cd in the default media player?
    thanks for your much needed help! :-)
    brian

  10. #10
    Join Date
    Aug 2003
    Posts
    13

    Re: Launching windows CD Player?

    I tried figuring out a way of maybe just lauching the systems cd player,(assuming most everyone has it installed in windows)
    here's what I thought of...
    Have the button opening the file...
    %SystemRoot%\System32\cdplayer.exe
    But when I try and work it, I get the error message "File not Found". Am I on the right track...
    brian

  11. #11
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: Launching windows CD Player?

    Not sure, I always integrat emy audio right into my projects, usually as MP3. I wouldn't use CD Audio nor .wav to distribute personally but that's just my tastes... I'm an MP3 fan, here's an example of using a web object to create an MP3 jukebox for examplehttp://www.indigorose.com/ubbthreads...fpart=&vc=

    Corey Milner
    Creative Director, Indigo Rose Software

  12. #12
    Join Date
    Aug 2003
    Posts
    13

    Re: Launching windows CD Player?

    Finally figured it out!
    Most windows cdplayer.exe file are stored in the sytem32 folder in the windows directory. A simple action of...
    %WinDir%\System32\cdplayer.exe
    launches the windows cd player letting the user start the audio portion of the cd.
    Seems to work fine!
    brian

  13. #13
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: Launching windows CD Player?

    Cool... [img]/ubbthreads/images/icons/smile.gif[/img]

    Corey Milner
    Creative Director, Indigo Rose Software

  14. #14
    Join Date
    Jan 2000
    Posts
    2,002

    Re: Launching windows CD Player?

    Better yet, use "%SysDir%\cdplayer.exe". This will ensure that the path to the system folder is correct on all Windows versions.

  15. #15
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

    Re: Launching windows CD Player?

    A little ditty, 'bout controlling the cd-rom
    a DLL I made to help you along.

    Download Sample and DLL

    BTW, be careful trying to use cdplayer.exe. There is no such file on my system (XP Pro).

Page 1 of 2 1 2 LastLast

Posting Permissions

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