Problem in interactive pdf playing wrong sound file for all

I have a created an interactive single page PDF with a video file and at least 4 mp3 files. I have added buttons to play one file and stop all others.
The buttons work perfectly BUT, the first click of any button actives a certain mp3 file. the same file each time. once i hit a button again that is told to stop the mp3 it stops and all works well.
How can i fix this issue of the one mp3 file playing one any media buttons first click?
thank you for any and all help

I've been working on displaying pdf from a servlet, and although I don't know exactly what your situation is, here is how I served up the pdf file from the servlet using the HttpServletResponse object.
            byte[] data = getFileBytes();// from somewhere
            response.setContentType("application/pdf");
            response.setContentLength(data.length);
            java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat("EEE, dd MMM yyyy - HH:mm:ss z");
            response.setHeader("Expires", dateFormat.format(new java.util.Date()));
            response.getOutputStream().write(data); //Write out the pdf report
            response.getOutputStream().flush(); //flush the buffer

Similar Messages

  • Can Adobe Interactive PDFs play sound from imported .swf files

    Hello.
    I'm really really stuck, can anyone help? I'm on 10.8.3 using In Design CS6
    I am trying to get an interactive PDF with imported .sfw files with sound to play ....the sound. Preview is fine in the working file - but as per the previous query on thishttp://forums.adobe.com/message/4772574 - The interactive PDF loses the sound. I tried installing ezPDF - but it's an app and I don't know how to install it to work (I think it's meant for  iPADs). So...does anyone know if I can have an imported .swf file play when exported to an Interactive PDF and also work on an end users PC?...should I be able to install ezPDF reader on my MAC and get everything working?
    Any help would be good as this is day 3 having called Adobe on Day 1 which was fruitless.
    Thanks
    Ads

    Really hard to say without seeing the whole project, but my guess is that you have moved your exported SWF somewhere from it´s original location (where you exported it to) without moving Resources folder to same target location too... when you place video, audio or SWF to your layout, indesign does not embedd it to resulting SWF. Those files will be stored into a resources folder which always has to be at same root with exported SWF. Media files will be loaded dynamically from that folder at runtime.
    So you can guess what happens if that folder does not exist....

  • Interactive PDF weirdness: buttons, sound, and other hyperlink intrigue

    Hi everyone.
    1. I'm trying to see if there's any way whatsoever to make a "Back" button (like in a browser) in an interactive PDF work correctly on an iPad. I did a test doc that works fine on a Mac, but on the iPad, the buttons don't even appear in iBooks, Notability or GoodNotes. In the iPad's version of Adobe Reader, they are visible, but don't do anything. I've searched the ID forums trying to figure out what info is outdated, but am beginning to think that Back/Forward buttons just plain won't work on an iPad. Is there any work around? (I don't have Acrobat or other Adobe programs, so I guess the question should be, "Is there a workaround without having to pay more big buckaroos for an additonal Adobe program?")
    2. Oh, and sound doesn't work on either the Mac nor iPad, although the button does show up on all the iPad apps I mentioned. Besides the fact that the button doesn't work, it does seem odd to me that it does show up in these other programs, whereas the previous/next buttons don't even show up.
    3. Another weirder weirdness: I have a 4-page test document with some hyperlinks on a master page which is applied to all four pages. The hyperlinks have various visible/invisible, think/thin Adobe rectangles around them, so I could see what they look like. Yet when I export to an Interactive PDF, although the hyperlinks appear on all four pages, they only work on one page—in one export, only the first page, and in a subsequent export, only on the second page. AND only one of the rectangles shows up at all, and only on the first page, at that. I've reapplied the master page multiple times, and replaced my prefs as described at http://forums.adobe.com/thread/526990. No change. I have no idea what's going on!
    This is on a iMac i7, and most up-to-date versions of the OS and ID: OS X 107.2, ID CS 5.5 (V7.5.2.318), and an iPad 2, with all current, update software.
    I'll attach a link to my zipped test file and PDF, should anyone want to take a look at them. (Warning: there was no attempt at aesthetics in making the test file!)
    http://dl.dropbox.com/u/17952771/Interactive%20PDF%20tests.zip (866 KB)
    Thanks ahead of time for any input!

    For 1. and 2.: concerning PDFs, there is no "on Mac" and "on iPad". Both are mere environments in which software runs. It depends entirely on which software you are using.
    There is not a single PDF reader available for the iPad that supports everything Adobe Reader can do on a modern desktop. As for your "on Mac", you don't say so but I bet you are  using OS X's Preview application, which is not by Adobe and also does not support any of the more advanced functions possible in PDFs.

  • How do i play two sound file one after another

    Hi All,
    How do i play two sound file one after another using single AudioClip Component?.
    Advance in thanks
    Manivel

    AudioClip gives you very little control over what happens to the sound, it also isn't capable of playing long clips or waiting until a clip ends. It will play multiple clips over top of each other.
    To do what you want you should use the facilities of javax.sound. Here's a post with an example: http://forum.java.sun.com/thread.jspa?forumID=513&threadID=450768
    There is also a tutorial, but its example fails for long clips.

  • Help playing a sound file please...

    i am trying to play a sound file everytime a button is clicked. the sound will play the first time the button is clicked but wont play after that. how can i get the sound file to play everytime the button is clicked?? here's how i play the sound file...
    InputStream in = new FileInputStream(sound.wav);
    AudioStream as = new AudioStream(in);
    // in the button action event...
    AudioPlayer.player.start(as);
    i tried adding this line... AudioPlayer.player.stop(as);...before the...AudioPlayer.player.start(as); -- the sound file still only plays once
    any help appreciated...thanks

    Hi there,
    Is there a class AudioPlayer in the API or is it yours. Anyway, your class must implement AudioClip interface. Then call yourClass.play(as); You dont need to stop, each time you call play(), it restarts. Try and let me know.
    cheers

  • How Can I export Sound Files for Sound mixing?

    Can someone please explain me the process of exprting sound sound files for the Sound Mixer & Composer? How do I deliver it to them?

    Welcome to the forum.
    First, what version of PrE are you using, and then, on what OS version?
    In general (specifics can come, with the above info), one would Share/Publish+Share (or Export in older versions) the Timeline as an intermediate Audio-only file. That would be Imported, or Opened in the audio-editor program.
    In PrE 11, or 12, one would go to Publish+Share, and then Computer. There, they would scroll down the list, to Audio. Note: the scroll bars are not easy to see, but easy to miss. Look to the far right of the Panel. With Audio selected, choose PCM/WAV @ 48KHz 16-bit. That will get you the best file to edit further with your DAW. When that editing is complete, use PCM/WAV @ 48KHz 16-bit, then Import the resultant edited Audio file into the PrE Project, placing it on an empty Audio Track, say Audio 2, or 3. To maintain its position, I would place the CTI (Current Time Indicator) at exactly the point that you want that edited Audio file to be, perhaps at the start of the Timeline. Then, with Snap turned ON, the edited Audio file should snap to the CTI.
    When it is in place, you can Delete the other Audio (that which you exported for additional editing), or just go to the Audio Mixer, and check Mute for any Tracks, that contain that original material.
    Hope that helps, and if you can let us know a bit more, then someone can step you through any "gray areas," for your specific version.
    Good luck,
    Hunt

  • [SOLVED] -Qkk shows "no mtree file" for all packages

    When running pacman -Qkk after the upgrade to 4.1.0, I am now getting "no mtree file" for all packages on my system. These errors did not occur prior to the upgrade, and I upgraded no other packages. Does this indicate breakage? How should I fix this?
    Last edited by cdown (2013-04-05 02:05:35)

    Allan wrote:The only way to fix this is to rebuild all packages using makepkg from pacman-4.1....
    So this is not breakage that I can fix on my end, then?
    I looked at the libalpm source for information about mtrees, it looks like they are used to provide package integrity validation, but it's possible I'm wrong since I only read a small part of the code on mtrees. I'd appreciate information about what they are and what issues lacking them could cause.

  • Write 32 channels thermistor data (temp in degree vs date/time) into xls file for all channels continuously.

    i am acquiring 32 channels thermistor data (temp in degree vs date/time) in waveform plot using array to cluster function  ,
    now my problem is how to write this data  into xls file for all channels continuously.
    please help me at the earliest & i am new to Labview.

    Hi Priyanka,
    Writing to excel file continuously is not a good idea, you can use ".CSV" or TDMS file format and once data acquisition is completed you can convert that to excel file using report generation toolkit.
    With Regards
    Miraz
    Kudos is better option to thank somebody on this forum

  • Global emacs config file for all users?

    Hi all,
    i put .emacs in my home dir, but it do not take effect when  'sudo emacs'
    so where should i put the config file for all users ?
    thanks!

    use this elisp snippet to edit file by sudo
    (defun xwl-revert-buffer-with-sudo ()
    "Revert buffer using tramp sudo.
    This will also reserve changes already made by a non-root user."
    (interactive)
    (let ((f (buffer-file-name))
    (p (point)))
    (when f
    (let ((content (when (buffer-modified-p)
    (widen)
    (buffer-string))))
    (kill-buffer (current-buffer))
    (if (file-remote-p f)
    (find-file
    (replace-regexp-in-string "^\\/[^:]+:" "/sudo:" f))
    (find-file (concat "/sudo::" f)))
    (when content
    (let ((buffer-read-only nil))
    (erase-buffer)
    (insert content)))
    (goto-char p)))))

  • Can we keep one action file for all jsp files in struts?"

    I have 5-6 Jsp pages and all are inter connected.
    If any one make changes, these changes should be display in the database.
    In this case, I need only one Action class which can hold or manipulate all changes from all jsp pages. I am not sure "Can we keep one action file for all jsp files?"
    If yes, then how can we configure struts-config.xml file.
    If no, then pls suggest me any altenative solution.

    hai
    go for DispatchAction class and then pass as parameters
    refer struts complete reference...
    it will solve ur problems..

  • HT3669 I only have a HP printer and why I need to install a file for all the HP printers drivers 590MB??? if normally the size of my file should be 5MB.  some one could me help to avoid installation of 590MB for my new mountain lion software???

    Hi guys..!!
    I would like to know if someone could help on this:
    I just have a HP printer (HP Designjet 100) and for some reason I need to install a file for all the HP printers drivers in total 590MB to be able to use my printer in my mountain lion???
    If normally the size of my files in the for previous software was more or less 5MB why now i need to install 590?
    Some one could help me how to avoid installation of 590MB for my new mountain lion software???
    Thanks

    If you go to http://support.apple.com/downloads and locate the HP Printer Drivers installer, you will find that it is 473.4 MB (for version 2.11). If you install this, it will install the full set of drivers for every model of HP printer that is supported by the drivers distributed through Apple. The disk space occupied once installed will probably be larger than the download, since the downloaded file is compressed.
    On the other hand, if you have an HP printer connected and you use Software Update (or the Update tab in App Store), that should offer you a much smaller set of HP drivers, which are only applicable to your printer (and possibly a few similar ones). These updates are typically only tens of megabytes rather than hundreds of megabytes.
    If Software Update doesn't offer you any HP drivers then it either thinks you have the latest drivers installed already, or the printer model is not supported by the drivers available from Apple.
    This article lists all of the printer models for which Apple distributes the driver:
    http://support.apple.com/kb/HT3669

  • Move the Cache files for all user in the domain, which work with the PC

    Is there a possibility to chance the Cache file for all User.
    If i logon with a new user the Cache is written automatically in Proflie of the user.
    can configure to Java in such a way that with announce a user the Cache file get automatically moved to c:\temp.
    Thanks for your help

    oh, too bad, it is part of the requirement-we need to do it automatically through web.
    Any easier method to change the client machine deployment.properties through web?
    Need to deploy the application to thousands PC and the PC configuration may be different one by one.
    oldguy

  • Problem, trying to play many sound files

    hello,
    I did not find a specific answer to my question in most of the archives and so I am posting here.
    my problem is that I have to play a sound when mouse moves over an object and another sound when the same object is clicked.
    there are many such items on the screen and so it is expected that when the mouse entered from the mouse listener is fired, the sound must play.
    but what really happens is that when the mouse moves over the first object the sound plays all right. but there is no sound played when the mouse click happens.
    I have properly loaded the sound files and I am sure that the code is right.
    infact the major thing that has frustrated me is that if I move the mouse on an opject (an icon) the sound is properly played. and if I wait for a long time and then move the mouse on another icon the other sound is played as well. but if I move the mouse quickly from one object to another no sound is played for the second object. or if I click the mouse on an icon after a long holt even the click sound playes.
    what could be the problem. why is it that sound only play when the actions are done after long haults?
    is it an issue of java performance. should I try to do the sound playing stuff in different threads for each icon's mouse events?
    I also tried to stop the file on the mouse exit method to make sure that there is no sound left playing.
    this game is depending a lot on mouse movements with sounds and so I have to get the sounds playing at the same time mouse moves over the objects.
    I use the audioClip to load my sounds with the method in the applet class.
    I really don't know abt the latest java media api and will like to know if that is what I must use for my task or audioClip is ok with me.
    thanks
    Krishnakant.

    I dont know exactly, but I dont know if applets support various files at one time.
    Have your tried to do that with javax.media or with javax.sound.sampled?
    Or could your post the code?
    R. Hollenstein

  • Problem with playing a sound file.

    Hi,
    I simply want to play a sound by a button click. I imported
    <AVFoundation/AVAudioPlayer.h>. The code block is here:
    In .h file:
    #import <UIKit/UIKit.h>
    #import <AVFoundation/AVAudioPlayer.h>
    @interface PlaySoundViewController : UIViewController <AVAudioPlayerDelegate>
    in .m file:
    -(IBAction)btnPlay:(id)sender
        //Get the filename of the sound file:
        NSString *path = [[NSBundle mainBundle] pathForResource:@"REC001" ofType:@"MP3"];
        AVAudioPlayer* thePlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];//error here as it will compile if I commented it (and two line after) out.
        thePlayer.delegate = self;
        [thePlayer play];   
    Everything looks fine but it failed when I tried to run it. Looks like it cannot find my sound file "REC001.MP3". I put it in folder ".../PlaySound/Resource Files/SoundFiles/REC001.MP3", and "PlaySound" is my project name. However the path returned is ".../PlaySound/REC001.MP3". I guess this is why it cannot find the object. But it didn't work even I put the sound file under "PlaySound" directly. Anyone has a solution?
    Thanks.
    Regards,
    Taizhi

    Hi Mark,
    Thanks for the reply. Based on your instruction, I checked and I can see the sound files in Build Phases. The location is ".../PlaySound/SoundFiles/REC001.MP3". I don't know why it ignores folder "Resource Files". I guess that is the way it is as I also can see other images in different folders which are shown properly in the project.
    The detailed error message is here:
    Ld "/Users/greatzhi2001/Library/Developer/Xcode/DerivedData/PlaySound-anydnuuxbpxz lqfodwbuqqjwjzcd/Build/Products/Debug-iphonesimulator/PlaySound.app/PlaySound" normal i386
        cd "/Users/greatzhi2001/Desktop/iProjects/PlaySound"
        setenv MACOSX_DEPLOYMENT_TARGET 10.6
        setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
        /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3 .sdk -L/Users/greatzhi2001/Library/Developer/Xcode/DerivedData/PlaySound-anydnuuxbpx zlqfodwbuqqjwjzcd/Build/Products/Debug-iphonesimulator -F/Users/greatzhi2001/Library/Developer/Xcode/DerivedData/PlaySound-anydnuuxbpx zlqfodwbuqqjwjzcd/Build/Products/Debug-iphonesimulator "-F/Users/greatzhi2001/Desktop/iProjects/PlaySound" -filelist "/Users/greatzhi2001/Library/Developer/Xcode/DerivedData/PlaySound-anydnuuxbpxz lqfodwbuqqjwjzcd/Build/Intermediates/PlaySound.build/Debug-iphonesimulator/PlayS ound.build/Objects-normal/i386/PlaySound.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework UIKit -framework Foundation -framework CoreGraphics -o "/Users/greatzhi2001/Library/Developer/Xcode/DerivedData/PlaySound-anydnuuxbpxz lqfodwbuqqjwjzcd/Build/Products/Debug-iphonesimulator/PlaySound.app/PlaySound"
    Undefined symbols for architecture i386:
      "_OBJC_CLASS_$_AVAudioPlayer", referenced from:
          objc-class-ref in PlaySoundViewController.o
    ld: symbol(s) not found for architecture i386
    collect2: ld returned 1 exit status
    Is the framework AVFoundation I added wrong? Thanks.
    Regards,
    Taizhi

  • Please tell me how to automatically play a sound file in a PDF slideshow?Da

    I use PS CS3, LR2, and now I purchased Acrobat 9.1 Pro.  My intent is to create an image based full screen automatic slideshow WITH SOUND.  I have everything working well but I can't figure out how to get the sound file to simply play along with the images.  I do not want the viewer to have to press anything to hear the sounds.  The sound file should simply play along with the image(s).  I would like to be able to time the sound file to the images as well.
    I will appreciate any pointers you may have.
    Thanks...

    To do this reliably the document has to be in the list of the client applications list of trusted documents.  You get this prompt when you attempt to play a sound.  The other way is to actually set the Multimedia Trust (legacy) preference on each client for each type of Player application.  While this might seem a bit of a task it's meant to protect the user.

Maybe you are looking for

  • OpenFirmware

    I deleted my bootmgr from the command prompt window in Windowys 7 ( a mistake), and the next time i started my computer, a page came up saying that Windows failed tos tart because there was a hardware or soft ware change File: \Boot\BCD Status: 0xc00

  • Permission issue with external hard drive

    Hi, I have an external hard drive that has a bunch of video and audio files on it. Any time I try to open any file from the drive, regardless of file type, the application it's supposed to open it says it can open. Most of the people I have talked to

  • Early alarm on my new E66

    Just familiarizing myself with my new E66 (200.21.118). I have always used the alarm devices in my previous phones, but this morning the E66 was kind enough to wake me two hours EARLIER than the setting. It has worked fine the previous 3 days, but ob

  • Palin old java class Servlet Communication issue

    I am sending data to servlet and able to get back data to plain old java class using url.openConnection mechanism.But I want to redirect another jsp page after servlet get data from java calss. Can any one help me please Regards Madhu

  • Contacts not saved in itunes

    I just swapped my 3g yesterday for a new one...the other one was giving me tons of fits and bad service. Everything except my calendar and about 40 of my contacts tranfered to the new phone after I connected to itunes...luckily I was able to get my o