View Full Version : Temporary pause of background music
ADKstorm
11-24-2002, 06:13 PM
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
Corey
11-24-2002, 08:40 PM
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 (http://www.indigorose.com)
eric_darling
11-25-2002, 06:28 PM
What about converting your QT movie to MPEG-1, and keeping it all inside AMS? Just a thought.
Corey
11-25-2002, 07:42 PM
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 (http://www.indigorose.com)
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 (http://www.indigorose.com/ubbthreads/uploads/14545-mini.zip)
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.
pierre
04-14-2004, 08:55 AM
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
That was uploaded to the forums a while ago. It looks like it got lost when IR switched to the new forum software.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.