Multiple audio players embeded in tooltip

I am trying to embed audio players in a drop-down content tooltip. I will eventually have lots of these on a page.
My problem is this:
When I close the div the sound continues to play.
I can also make them play at the same time.
I would like them to autostart when you open the div, but when I do that they both start at once before you've even activated the drop-down content.
I would rather not do the whole site in flash. any help would be appreciated.
thanks!
http://www.anna-callahan.com/corner/index3.htm

I would recommend looking into using SWFObject to dynamically embed the SWFs.  That way, when the div appears you can call the object embed script and have it auto-play, and then remove the SWF from the page entirely when the div closes.
http://code.google.com/p/swfobject/

Similar Messages

  • Multiple flash audio players embeded in tooltip

    I am trying to embed audio players in a drop-down content tooltip. I will eventually have lots of these on a page.
    My problem is this:
    When I close the div the sound continues to play.
    I can also make them play at the same time.
    I would like them to autostart when you open the div, but when I do that they both start at once before you've even activated the drop-down content.
    I would rather not do the whole site in flash. any help would be appreciated.
    thanks!
    http://www.anna-callahan.com/corner/index3.htm

    I would recommend looking into using SWFObject to dynamically embed the SWFs.  That way, when the div appears you can call the object embed script and have it auto-play, and then remove the SWF from the page entirely when the div closes.
    http://code.google.com/p/swfobject/

  • What happened when multiple audio players start at the same time?

    Hi,everyone!
    I am developing a game, using JMF to play sound.
    These sound are stored in mp3 files.
    In order to decode mp3 files, I installed JMF and mp3-plugin( jmf-2_1_1e-windows-i586.exe , javamp3-1_0.exe).
    In the Game, a background music play back repeatly.When EndOfMediaEvent happened, I setMediaTime(new Time(0)) and then start().It works well.
    There are several sound-effects,may start at any time,
    so 2 or more sounds may play back at the same time,
    and then Strange things happened.
    Those sound-effects, usually short, can not play back inextenso.
    They lose some beginning part, the length of the part is not constant.
    i.e. Audio should start at MediaTime 0, but now they start at MediaTime x, x >= 0,
    not only that, sometimes, Audio process bar runs, but no sound heared.
    I do not know what is happening.
    So please help me, thanks a lot.
    The way that I use Players:
    initialize:
    create realized players from mp3 files
    prefetch them
    finalize:
    deallocate not null players
    then close them
    using:
    player.setMediaTime(new Time(0))
    then player.start()
    My Environment:
    Windows XP, java 1.4.10, JMF2.1.1, MP3-plugin1.0

    This is very strange, difficult to guess the cause... never had such an issue. Normally when the object to which the audio is attached disappears the audio stops. So in your case going to a next slide should stop the audio of the previous slide. Same with object audio.
    Do you have the different audio clips (one per slide) in the Library? Could you try to delete the audio on the slide and drag it again from the Library to see if you have the same result? And what happens when you attach the audio clip to an object on the slide (you can create a totally transparent rectangle with no stroke that will not be visible to attach the audio).
    Lilybiri

  • After embedding youtube video, my audio players disapeared

    Hi,
    I embedded a youtube video (by editing the text file after exporting the iweb page to my desktop) on a page that also had audio players on it, and now the audio players don't show up. I tried repeating the process, with the hopes that something just got lost in translation, but no luck. Any help would be greatly appreciated!
    Simon

    Thanks Christopher,
    I was thinking about it, meanwhile I'm still trying to do it the way I suggested. I'm able to embed the clip but just not in the right place, just don't know where to paste the code, I thought perhaps there is a command in ActionScript to sort this out
    Cheers

  • Multiple audio-outs via USB or Firewire?

    I'm looking for a hardware solution for my mid-2010 MBP w/ 2-4 audio outputs via USB or Firewire.  On the software side, I want to have multiple media players open and playing simultaniously, but each output separately.  I was told m-audio makes devices that allow this, but I am curious which may be the cheapest with this capability - or alternate manufacturers.

    I think you'd have better luck going to the m-audio forums and asking your question. 
    http://forums.m-audio.com/
    It would be hit or miss to find someone here who's an expert on your issue.  Also, you might post your question to the Logic Studio forum here:
    https://discussions.apple.com/community/professional_applications/logic_studio
    There are a lot of sound people there who might point you in the right direction with a MacBook Pro.

  • HOW TO ADD MULTIPLE AUDIO TRACKS - iMovie '11

    I'm having trouble adding multiple audio tracks in iMovie 11.  I already have an audio track embedded with the video and a separate music track under.  I wish to extend the music track further but need to cut it off at a certain point.  I tried just adding the 2nd music track under the first but when I 'drop' the track it doesn't show up anywhere.  Any ideas or work arounds will be helpful.  Thanks.

    Hana wrote:
    ...   I tried just adding the 2nd music track under the first but when I 'drop' the track it doesn't show up anywhere.  ...
    you have to drag the music-clip onto a video-clip - then, iM will add it automatically upon/under the other ones ...

  • How to edit a multiple audio video clip on Premiere

    Hello everybody
    Maybe this is a dumb question, I'm sorry if I'm asking what is obvious for you, but I swear I tried to find on the web and on this forum, but I couldn't find anything.
    Well, I made a video using a screen capture software called Dxtory, that provides me the ability to record my PC screen, with multiple audio tracks.
    Ok, now I have a 15gb avi file. When I open this file in the Media Player Classic, I can play one or both channels. The first channel is the original audio captured from my PC. Every audio generated by my PC is in this track. The second track is my voice, with my commentaries. I have all of this in one single file. They are not splited. It's just one file.
    Then when I import into Premiere, the software just recognize the video track and the first audio track. I can't find the second, with my voice.
    I know I can split the clip into 3 files (1 video and 2 audios) but it would take longer. I just want to drop the file on Premiere and edit the audio volumes quickly, because when I talk I would like to low the volume of the PC audio.
    Now, the question: Is there a way to Premiere recognize both tracks in this single file? How?
    Thanks in advance for any help.

    I'm actually surprised that Pr can import this at all--the video is Xvid. Maybe it's some variant that Pr's importers can handle, as Jeff suggested. I dunno--it doesn't play well for me, regardless, and I'm not going to install the Dxtory codec to find out.
    Anyway, to the matter at hand: while AVIs can, apparently, contain multiple audio tracks, Pr's importers are limited to a single track. However, Pr has other importers than can handle multiple audio tracks. QuickTime--which is a wholly different process--supports multiple audio tracks, as does MXF (some flavors). However, Xvid in QuickTime (which is feasible) won't import in Pr (at least on a PC), and Xvid won't go into an MXF file at all; that means you'd have to transcode. Personally, this would be my choice--but I found that the original clip played back pretty terribly, so that would be why I'd go that route.
    Additionally, you could extract the second audio track to a separate WAV file, import both the AVI and WAV, and then use the Merge Clips feature to marry them together as one pseudo-clip. Not perfect, but it would work. The benefit is that you don't re-encode anything.
    So, I've got solutions for both the re-encode/MXF option (my preference) and the AVI/WAV option. Here's proof of the MXF (transcoded video to XDCAMHD422 50Mbps) with four audio channels (stereo must be split to dual mono):
    At the end of the day, these (or a variation of them) are your only options. Pr simply won't import multiple audio tracks (even dual mono) in an AVI container. Let me know if you're interested in either of the solutions.

  • How do I import multiple audio tracks?

    Hi there...
    I have a number of video files that have multiple audio tracks in them. The problem is I can not work out how to get prem to see multiple audio tracks. The files import fine and I have also tried various other formates with multi-track audio.. but only audio "stream 1" is visible in prem.
    What I was hoping is that the video would come in with a 2 audio tracks instead of 1 each in its own "lane".. so I can then use the mixer and the audio files are  linked to the video file and in perfect sync.. (just like when you import with 1 track)
    NOTE: I am not talking about channels.. but complete 2 completely different audio tracks.. and I know that I could extract these audio streams into wavs and then re-sync them but this seams overkill and a duplication of effort... surly there is a way to have prem support more than 1 audio track on a video file?
    --Me

    Well, if PP doesn't bring them in, then best guess is they just don't exist.
    There's really no trick or user adjustment for this that I'm aware of.  You import the file, PP sees what's in it.  I've never observed or read about any other behavior than that.

  • Can you copy multiple audio (text to speech) files from one slide onto a new slide at once?

    Can you copy multiple audio (text to speech) files from one slide onto a new slide at once? OR do you have to copy and paste each line of text to speech and insert into new slide?

    Hi there
    I believe that you end up with a single file that you can use. Once you get that created, it's an audio file in the library. You may then add the audio file to another slide or object by looking in the Library after choosing to add audio.
    Cheers... Rick

  • Video and audio players will not show in Firefox. Players show in Safari and Chrome. (Mac computers). Do I need a plug-in?

    Tested on 3 apple mac computers:
    Mac Pro, Mini Mac and Macbook Pro.
    Each computer running Mountain Lion and Firefox 11.8.800.94
    Video and audio players not showing on website (video player is JWPlayer)
    Error on video player placeholder says 'No video with supported format and MIME type found'
    When the same site is access via either Chrome or Safari then the video and audio players show with all of the controls.

    You get this error if the video tag is used and not an object or embed tag that specifies a Flash player.<br />
    So this doesn't look like a problem with the Flash player as it is most likely not used in this case.<br />
    If there is fall back code to use a Flash player then it isn't working.
    Clear the cache and the cookies from websites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > Cookies: "Show Cookies"

  • Is it possible to retain multiple audio tracks when exporting?

    While ripping my DVD collection, I've wanted to add a purchased RiffTrax (see www.riftrax.com) to the movie as another audio track. I've been successful, but it took the following steps:
    1. Encode the movie using Handbrake, open the resulting m4v file in Quicktime Pro
    2. Also in Quicktime Pro, open the Rifftrax aac file I created and add it as another audio track in the m4v
    3. Save the m4v as a Quicktime mov file
    4. Use Handbrake again to encode the mov file into an m4v file, including my added audio track
    The reason I have to do step 4 is because if I were to export an m4v file directly from Quicktime Pro, it would compress all of the audio tracks into a single audio track. It would save a lot of time if Quicktime could export multiple audio tracks, at least when exporting to formats that can handle them. Does anyone know if this is possible?
    BTW, if anyone wants more details into how I create the RiffTrax aac, just ask.
    - Jake

    I've answered my own question, it was a lot easier than I thought. After the first encoding by Handbrake, there's really no difference between calling it a mov file or m4v file. I can change the file extension at will and there's no need to do an export that mashes the audio tracks. It's only AppleTV that needs to see the m4v file extension, Quicktime and iTunes doesn't seem to care one way or the other.
    Thanks for letting me think out loud.
    Jake

  • Editing Multiple Audio Clips From Premiere in Audition

    Hi there,
    I am working with video/audio in Premiere that has frequent cuts (although the audio is derived from two files) and I need to edit all the audio files at once, rather than one by one, in Audition. I was hoping to this by nesting the audio in Premiere but I am not able to edit the nested file in Audition after this.
    If anyone has any ideas of how to work with and apply the same properties to multiple audio clips from Premiere in Audition I would greatly appreciate it.
    Thanks...

    Hi everyone, I also have a trouble with cs6. I just record 3 tracks in the early today, then when I got home, I saved as sexs file ( wrong decision). After that, I went back and try to open the file, it can't file the recording tracks. The only one thing still exist is my beat, what should I do to recovered it? thanks for helping me out of this.

  • Home Theater need. Multiple Audio Streams from 1 card or possible to use 2 car

    I currently have 2 SB Li've's installed and a SB Audigy in the box.
    I would like to be able to send different audio out to different devices. I need to send audio from a game interface called MAME 32 to a speaker system connected to the PC. I also use this PC as a home theater PC and want to send audio from my DVD playing software out to my TV(in analog stereo mode) and/or to my receiver(in Dolby Digital mode using the digital connector).
    I would like to be able to run these seperatly without having to go into the Control Panel and switch the default sound card like I am doing now. I do not need to run them at the same time.

    Bummer. Are you guys working on something that might have this capability? Seems to me that the closer we integrate PC's into our entertainment systems the more need we will have for the ability to do multiple audio streams, i.e. MP3's to the living room. DVD movie audio to the family room, XM radio classical station to the kitchen for mom etc..
    Intel is offering this as an onboard solution that has the ability to do at least 2 different streams.
    http://www.intel.com/design/chipsets/hdaudio.htmMessage Edited by relay on 0-26-2004 05:02 PM

  • I have a page with multiple quicktime players on it, and want to close all other players when any of the players is started.

    I have a page with multiple quicktime players on it, and want to close all other players when any of the players is started.
    <div id="mp3-player" style="display:none;height:15px !important;float:left;margin:0px 0 15px 0px; width:270px !important;">
                           <div style="height:15px !important;width:270px !important;">
                               <embed src='http://209.15.205.3/~cityval2/MP3/352681.mp3' width="270px" height="15px" AUTOPLAY=false CONTROLLER=true LOOP=false PLUGINSPAGE="http://www.apple.com/quicktime/" />
                            </div>
                        </div>

    One key point.
    1. Migration within  the same forest ; we can say operation is cut & paste (Source account wil be not present)
    2. Migration between the forest ; we can say operation is copy  & paste ( Source account will be present)
    Also find some ADMT cool stuffs.
    ADMT Series – 1. Preparing Active Directory
    ADMT Series – 2. Preparing the ADMT Machine
    ADMT Series – 3. SID History
    ADMT Series – 4. Password Export Server
    ADMT Series – 5. Machine Preparation
    ADMT Series – 6. Service Account Migration Wizard
    ADMT Series – 7. Group Account Migration Wizard
    ADMT Series – 8. User Account Migration Wizard
    ADMT Series – 9. Merging Users with a Different sAMAccountName
    ADMT Series – 10. Security Translation Wizard – Local Profiles
    ADMT Series – 11. Computer Migration Wizard
    Regards,
    Biswajit
    MCTS, MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, Enterprise Admin, ITIL F 2011
    Blog:
      Script Gallary:
    LinkedIn:
    Note: Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights..

  • Multiple Audio Lines

    hi all,
    Are there any open source projects out there that will show us ways to implement multiple audio lines and allow manipulation of each audio line seperately? e.g volume, pan etc??
    Is anyone working on a project that they would post??
    I have been working on a project which has 8 tracks, i have it playing the 8 tracks of audio but i am simply calling the same play function 8 times with a different file name each time. I use the play method described in the JavaAlmanac.
    If anyone has a project in development or otherwise, i would be very grateful if they would be able to post it here!! I'm sure it will be of benefit to them aswell as everyone else.
    cheers,
    RC

    hello again everyone,
    As no one made any replys to this topic, i will now show you what i have ended up doing to create my multiple track audio sequencer.
    Its not the best in terms of "smart code" but it works, and since i have a deadline for this project, i am happy to get it working no matter what way the code is structured.
    i simply used this file
    import java.awt.*;
    import javax.sound.sampled.*;
    import java.io.*;
    public class AudioTrack0Handler
         boolean mute = false;
         String fileName;
         int loop;
         Clip clip;
         public void play(String file, int loops )
                   fileName = file;
                   loop = loops;
                   try{
                   System.out.println("Play method called file..." + fileName);
                   AudioInputStream stream = AudioSystem.getAudioInputStream(new File("C:\\java\\code\\Audio\\" + fileName ));
                   //AudioInputStream stream = AudioSystem.getAudioInputStream(new File("1.wav"));
                   // At present, ALAW and ULAW encodings must be converted
                   // to PCM_SIGNED before it can be played
                   AudioFormat format = stream.getFormat();
                   if (format.getEncoding() != AudioFormat.Encoding.PCM_SIGNED) {
                        format = new AudioFormat(
                                  AudioFormat.Encoding.PCM_SIGNED,
                                  format.getSampleRate(),
                                  format.getSampleSizeInBits()*2,
                                  format.getChannels(),
                                  format.getFrameSize()*2,
                                  format.getFrameRate(),
                                  true);        // big endian
                        stream = AudioSystem.getAudioInputStream(format, stream);
                   // Create the clip
                   DataLine.Info info= new DataLine.Info(
                        Clip.class, stream.getFormat(), ((int)stream.getFrameLength()*format.getFrameSize()));
                   clip = (Clip) AudioSystem.getLine(info);
                   clip.open(stream);
                   // Start playing
                   clip.loop(loop);
                   //clip.stop();
                   } catch (IOException e) { e.printStackTrace();
                   } catch (LineUnavailableException e) {  e.printStackTrace();
                   } catch (UnsupportedAudioFileException e) { e.printStackTrace();}
         public void stopAudio()
              clip.stop();
              clip.flush();
         public void muteAudio()
              /*Control[] ctrl = clip.getControls();
              for (int i=0; i < ctrl.length; i++)
                   System.out.println(ctrl);
              FloatControl gainControl = (FloatControl)clip.getControl(FloatControl.Type.MASTER_GAIN);
              //double gain = .5D; // number between 0 and 1 (loudest)
              //float dB = (float)(Math.log(gain)/Math.log(10.0)*20.0);
              switch((int)gainControl.getValue())
                             case 0:
                             gainControl.setValue(-80);
                             break;
                             case -80:
                             gainControl.setValue(0);
                             break;
    and created it eight times for 8 audio tracks. i call each track seperately when i need to access the methods. With the stop method and mute method, it also allows me to stop all tracks or mute/unmute individual ones during playback.
    In parts This is a primitve way of doing it (i think) but it will remain here as a guide for anyone who finds it!
    cheers,
    RC

Maybe you are looking for

  • Need help on mobile gaming development basic  {working the game main menu}

    package Assignment1; import java.io.IOException; import java.util.Random; import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Graphics; import javax.microedition.lcdui.Image; import javax.m

  • How can I use JTA in my business logic and execute process with PAPI?

    HI All, How can I use JTA in my business logic and execute process with PAPI? When my business logic has exception, the process will rollback. or the process has some exceptions, my business logic also will rollback. I don't know how to do it. Does a

  • JMS Adapter in BPEL

    Hi, I'm fairly new to JMS, but I always thought that communication to and from a JMS message broker (OpenJMS in my case) is standardized. However, when reading the developer docs for BPEL it states that you have to configure OC4J specifically for a p

  • N97 contacts don't show up

    Okay, to cut a long story short... I tried to install an app on my phone and the installation failed. After that I started to get a "system error" message every few minutes on my phone. I decided to do a soft reset on the phone. This sorted out the e

  • The connection to the server "X" on port 143 timed out.

    My Mac is running MacOS X 10.6.2, and Mail 4.2 . I'm using Mail from my work connexion and it is running without problem. Today I use it from home connexion and Mail doesn't synchronize any of my E-mail accounts. I get the following error message:<pr