Announcement

Collapse
No announcement yet.

Temporary pause of background music

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Temporary pause of background music

    Hi,

    Is there a way to pause a MP3 that is the background music for the menu when the menu is minimized? Then when the menu is restored, the music begins where it left off.

    Example:

    Someone clicks a button that opens a video in Quicktime (outside of Autoplay menu). If there is background music for the menu, it plays during the Quicktime video......not good. Wanted: the background music on the menu paused while playing the video then resume when menu is restored (maximized).

    KEEP IN MIND, video is opened with Quicktime (not within menu)

    Thanks for any help/advice in advance

  • #2
    Re: Temporary pause of background music

    Well you can pause it on minimize by omitting the title bar, adding your own minimize button, and adding actions to that button which:

    a. pause the MP3
    b. minimize the window.

    Not sure how you're going to "unpause" your MP3 when the window is restored.

    That being said it's a safe bet that no one will start an application which plays music and then start watching a movie on top of that and then be confused as to how to solve the problem should they disenjoy the noise. I think you are worrying too much.

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment


    • #3
      Re: Temporary pause of background music

      What about converting your QT movie to MPEG-1, and keeping it all inside AMS? Just a thought.
      Eric Darling
      eThree Media
      http://www.ethreemedia.com

      Comment


      • #4
        Re: Temporary pause of background music

        Oh I see, I misunderstood this.

        OK here's a solution:

        Put your quicktime video on page 2 inside a web browser object.

        Have no background music on page 2.

        Simple enough...

        Corey Milner
        Creative Director, Indigo Rose Software

        Comment


        • #5
          Re: Temporary pause of background music

          Going off Corey's original suggestion of having your own minimize button, you could use the IsIconic function from the User32.dll to determine when the window was restored.

          See the attached sample.



          14545-mini.zip

          Comment


          • #6
            Re: Temporary pause of background music

            I just noticed there is a hesitation before the loop cycles to let the call determine whether the app is minimized. I would guess that it will depend on the speed of the machine in how fast the restore triggers the variable change.

            Comment


            • #7
              Hi Worm:
              I can't found this zip files. Can you tell me the zip file detail address again. Thanks you for advance.

              {Going off Corey's original suggestion of having your own minimize button, you could use the IsIconic function from the User32.dll to determine when the window was restored.}

              See the attached sample.



              14545-mini.zip
              Pierre

              Comment


              • #8
                That was uploaded to the forums a while ago. It looks like it got lost when IR switched to the new forum software.

                Comment

                Working...
                X