Announcement

Collapse
No announcement yet.

Playing MP3’s

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Playing MP3’s

    My menu project includes some long text files for the end-user to read. I thought it might be a good idea to add some music while the user reads these lengthy documents.

    So, I added an mp3 (Play MP3) following the ‘Open document’ command for one of the text files. The text file opened and then mp3 played… Great! However, the mp3 continued to play after I closed the document, which is not the desired result I was hoping to achieve. Instead, I wanted the mp3 to stop playing when the user closes the document. In addition, the mp3 would not stop playing until I closed the menu.

    I would imagine that some sort of variable (or whatever) must be added to either the Open document or Play MP3 command.

    Can this be accomplished and if so, what “exactly” do I need to do?

  • #2
    Re: Playing MP3’s

    Hi eljay,
    You can do this if you use the EXECUTE PROGRAM command and pass it your text file as a command line parameter, as we are discussing in the other discussion. Basically your actions will be:

    1) PLAY MP3
    2) EXECUTE PROGRAM, with wait for return checked.
    3) STOP MP3

    I have tested this on my system, and I am sure that it works properly.

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment


    • #3
      Re: Playing MP3’s

      Mark, it didn't work on my system (Win98).

      Following the instructions of both your replies, I entered the below information.

      1) WINDOW MINIMIZE

      2) Play MP3

      3) EXECUTE PROGRAM
      File Name: %WinDir%\Notepad.exe
      Arguments: %SrcDrv%\C:\Virtual CD\MyTxtFile.txt
      Working Dir:%WinDir% (defaulted to this variable)
      Wait for Return: checked

      4) Stop MP3

      5) WINDOW RESTORE

      Again, what I am attempting to do is minimize menu | play mp3 | open text document | stop mp3 (after closing document) | restore menu.

      So, what am I doing wrong?


      [This message has been edited by eljay (edited 04-03-2001).]

      [This message has been edited by eljay (edited 04-03-2001).]

      Comment


      • #4
        Re: Playing MP3’s

        Hi,

        I have been fooling around with this and there seems to be a problem.

        It appears as though the EXECUTE PROGRAM action is firing before the PLAY MULTIMEDIA action has finished, and as a result the "Wait For Return" checkbox seems to halt the action before completion.

        This appears to be a bug in the software, I will pass this on to the developers and see what they say.

        mark.



        [This message has been edited by Mark (edited 04-03-2001).]
        MSI Factory The Next Generation Intelligent Setup Builder

        Comment


        • #5
          Re: Playing MP3’s

          Thanks Mark!

          Please let me know what they say.

          ([email protected])

          Again, thanks for all your help past, present and future... I'm sure there'll be another post from me.

          Comment

          Working...
          X