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

PDFJS (PDF Jukebox Systems) Sound effects and Embedded Songs play in same time instead one after one!

LHUPA
Registered: Sep 17 2011
Posts: 2

Welcome friends!
 
So, I create interactive PDF documents so called "PDFJS" or PDF Jukebox Systems that consists of an interactive jukebox shaped PDF document with buttons, text fields (title strip index) and embedded or not embedded (ASMLS System) music and video. I have noticed that I cannot use sound effects i-e mechanism motor sounds, button clicks in the project because sound effects play in same time as the selected music instead playing sound effects first and then the selected music after as it should be on a real jukebox! I get the same problem if I try to build a "one button" specific multiple 20 tune program that should play all the tunes one after one until the 20 tune program cycle ends. All the 20 tunes play at the same time instead one after one... What a hell! If I use solely single music with no sound effects, all it's perfect! What shall I do to fix this problem? I don't use any javascript or other programming commands except the well known regular PDF sound or video embedding technique!
 
Thank you very much,
I count on you!

LHUPA

My Product Information:
Acrobat Pro 7.0, Windows
maxwyss
Registered: Jul 25 2006
Posts: 255
A (rather kludgy) workaround would be, if you start your sound pieces via JavaScript, to use setTimeOut() to delay the playing action. I assume that you know how long your sound effects are, so you know by how much you'd have to delay your tune. You also know how long your tunes are, so, you can set up a whole set of "delayed execute" scripts. Note that it is important to reset the timeout objects using clearTimeOut(), when your delayed script has executed.

Hope this can help.

Max Wyss.

LHUPA
Registered: Sep 17 2011
Posts: 2
Thank you very much for your quick answer!

I don't know enough javascript to use it in my projects with efficiency! The regular embedding technique doesn't work in these situations? I have always thinked that the sound effects should play and then the selected music after. That the same thing for a multiple music program as we know as a song play order in a regular multimedia player i-e Real Player!

Did you have javascript tutorials or references to a specific guide in the case of embedding multiple music or video clips using interactive buttons within sound effects especially in Acrobat?

A couple years ago, I have begun to learn javascript in Adobe Acrobat javascript guides in order to find anything about sound effects and music clips but, I don't know how to use it and I haven't found anything for controlling sounds or music programs... Perhaps you have such guides especially for sounds and music?

Thanks a lot maxwyss!

LHUPA