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
Professional Software Development Tools
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
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...
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
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.
Cool tip Adam...
Corey Milner
Creative Director, Indigo Rose Software
[img]/ubbthreads/images/icons/smile.gif[/img]
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
Neither of those apply in this case.
Corey Milner
Creative Director, Indigo Rose Software
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
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
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
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
Cool... [img]/ubbthreads/images/icons/smile.gif[/img]
Corey Milner
Creative Director, Indigo Rose Software
Better yet, use "%SysDir%\cdplayer.exe". This will ensure that the path to the system folder is correct on all Windows versions.
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).