These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

stop the sound file on the different page

vibgyor
Registered: Sep 27 2009
Posts: 7

I've a multiple pages and few sound files.
I've divided the pdf file into subsections, where each subsection contains multiple continuous pages.
What I'd like to do is when the first page in a subsection is opened, play the sound file and keep playing it in a loop till the user gets to the next section. At this point, stop the playing the already playing sound file and start playing the new sound file associated with that subsection.

Currently, in the launch properties, I select Enable when page opened and disable when disable content is selected. So, when I go to the next subsection, both sound files start playing because I am unable to stop the first one.

Two questions:
1. Is there a way to continuously loop through the sound file?
2. How do I stop playing the existing sound file on a particular page? (Is there something like page properties where I can select an action on a particular page?)

Using Acrobat Pro 9.1.3

My Product Information:
Acrobat Pro 9.1.3, Windows
joshcorey
Registered: Jul 14 2008
Posts: 79
1) Not from within the Acrobat UI to my knowledge. It may be able to be accomplished using Javascript (but in looking through the Javascript API I don't see a way to do it)... Alternatively you might want to look around on the web for methods of creating a looping MP3 that you can then use in Acrobat: http://www.compuphase.com/mp3/mp3loops.htm

2) You can set an action on a page, there is a "Multimedia action (Acrobat 9 and later)" which gives you access to Play/Pause/Seek/Volume and "Run a javascript". You can set an action to pause the audio but then will have multiple audio "annotations" opened at the same time. I will see if I can find a way to disable the annotation through javascript and respond again...
joshcorey
Registered: Jul 14 2008
Posts: 79
Another option I am pretty sure you have is to code a new audio player SWF in Flash, I won't go into detail unless that is a route you are interested in. You would use the communication bridge between actionscript and the PDF javascript. You could just have all of the audio in one file and have event listeners when the desired page is opened change the audio track...
joshcorey
Registered: Jul 14 2008
Posts: 79
Check out the posting on this page by Joel Geraci titled "How Do You Close a Floating Rich Media Flash Window?"

http://blogs.adobe.com/pdfdevjunkie/acrobat/rich_media_annotations/

Josh