View Full Version : After buliding project, the location seem is incorrect!
pierre
04-22-2004, 10:42 AM
Hi all:
I have some codes as below:
--It uses Windows Media Player to open 1.mp3.
File.Run("AutoPlay\\Docs\\wmplayer.exe", "C:\\1\\CD_Root\\AutoPlay\\Docs\\1.mp3", "", SW_SHOWNORMAL, false);
If the codes has build finished, it can't open the 1.mp3 by Windows Media Player.
It seems open file path incorrect. If I put 1.mp3 file to AutoPlay\\Docs, can it play properly? Or Where can I put ?
How do I put it to correct destination? Who can tell me or solve this confuse problem? Thank you for advance.
Desmond
04-22-2004, 02:20 PM
Hello Pierre,
AutoPlay Media Studio includes actions to play an audio file from within your application. Put an audio file (like OGG or WAV) in your Audio Directory (AutoPlay\Audio), and use the following action to play it:
Audio.Load(CHANNEL_USER1, "AutoPlay\\Audio\\soundfile.wav", true, false);
That would be your best bet.
Hope that helps!
Note: MP3 is a patented format and using it in multimedia projects may require you to pay licensing fees to the patent holders. That's why AutoPlay Media Studio 5.0 supports superior and patent-free compressed audio formats such as Ogg Vorbis (OGG).
pierre
04-22-2004, 10:16 PM
Hi Desmond:
Thanks your reply. But I want to make a MultMedia Design, so I will need an external applicaton to open mp3 format file. Now, I occure a problem during making the project.
As subjec: after building project, I original setup path to open the mp3 format file by Windows Media Player, it will become incorrect. Can you tell me where it puts the file location? Thank you again. I wish the thread will not bother you.
rhosk
04-23-2004, 04:58 AM
Pierre, are you publishing as a "Compressed Executable"? If so, try publishing to a "Hard Drive Folder" and see if you receive the same results.
pierre
04-23-2004, 07:04 AM
Thank Desmond and rhosk. I has tried successfully that it can reach my demand. Thank you again.
Desmond
04-23-2004, 09:17 AM
Any Time Pierre, good luck!
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.