How to play multiple sounds in PHONEGAP DESKTOP?

I created a phonegap Office (no Cordoba) game he background music and special sounds (event based), it works fine on the PC browser, but when played in mobile (after compiling using the application mobile phonegap) two sounds do not play at the same time... like when the effect of his kick , the background music stops forever and is not time... does anyone has an idea?

PS: I am developing for android, but also work for ios later

As with my response to your other question, we are kind to discuss Orange potatoes vs here.

The Developer PhoneGap app does not support any other than the basic plugins and a few third-party plugins plugin. You cannot add a plugin it unless you build your own version of the application of the developer.

For example, if you want to use a third-party plugin, you two (and only two) options:

1 PhoneGap CLI (or CLI Cordova)

2 PhoneGap Build

When you use the CLI, you can add a plugin as follows:

PhoneGap plugin add cordova-plugin-name - register

When you use Build (or CLI) you can add a plugin as follows (in your config.xml file):

It may or may not be true that your problem will be solved during the conversion in an APK. You can not count on PhoneGap Developer to prove that your application works or does not work. Well, there are some edge cases developer has expected also (unless you are very familiar with the internal architecture of PhoneGap). Therefore, do not expect it to tell you one thing or the other. (It's great for quick iteration, Yes, but not not for the final test.)

So to be sure of anything, or build an application using the CLI or build.

Note: If you're using a plugin, then it would be a way to solve your problem without worrying. But again, you have to build the application using the CLI or PhoneGap Build because it's a third party plugin.

Tags: PhoneGap

Similar Questions

  • Play multiple sounds

    Hello!

    How can I play multiple sounds at once please?

    I tried with 2 separate soundChannel vars but they always substitute eachother.

    Thank you

    play two sounds through the same channel sound? for example:

    
    
    
        
            
        
    
        
        
    
    
  • How can I get sound from my desktop to my TV Toshba pc?

    His record game

    How can I get sound from my desktop pc to my TV Toshba, that Iam currently using as my monitor...  Thank you

    You need to run a separate cable for audio.

    See the following Note of http://windows.microsoft.com/en-US/windows7/Connect-your-computer-to-a-TV

    Cables VGA, DVI and component video don't support audio signals. However, HDMI cables are supported, but not all, audio signals compatible HDMI video audio support cards. If your TV has an audio input, you might be able to connect an audio cable separate from their computer directly to the TV card. Otherwise, you need to connect the audio signal to a different device, such as external speakers or your stereo. For more information about sound cards, see sound cards: frequently asked questions.

  • Sometimes sound does not play when you play multiple sounds simultaneously

    It is also a matter of best practices, too.

    I built a game that uses many different sounds (about 48 I think). Many are short, less than a second and a few are longer, of the music cues, etc..

    Example problem: sometimes when there are a lot of play sounds and a music signal is supposed to fire, the sound of the music does not play. I did a trace on the function that plays the sound music and performs this function. Are there limits to how sounds can play at the same time? (It does not only happen to a particular sound, could be any noise)

    Also, regarding best practices, if there is a sound that could be played several times at the same time, a new instance of the noise must be created each time as its played? If there is that a single instance of this noise, will be the previous reading of this noise cancelled when it is called for replay?

    Thank you

    Adam

    There is a soundchannel 32 limit (which may exist at a given time) imposed by the flash player.  all two identical sounds may not play in a number of ms on the other.  There is no perceptible advantage and refusing the deductions that you may be able to play the sounds that are noticeable.

  • How to play a sound on a button to the bottom of the State?

    Hello

    That is my question. How to play sound on CLICK or down state of the button? I don't know how to slap a sound on the timeline, but not how to put specifically for the button and that's down from the State.

    Thanks for the help in advance.

    go to the scenario of the button and attach a sound to its low chassis.   You probably want the sync event property.

  • How to play image sound and moving of AVI file

    Hello

    I'm using LabVIEW 2010 and making the program to play image sound and moving to AVI file at the same time.

    I could play animated image of AVI file using "AVI OPEN.vi".

    However I couldn't play the sound file to AVI.

    Please give me an opinion on this issue.

    Hi yosuke

    If am not wrong you can do with the Windows Media Player ActiveX control.

  • Best practices to play multiple sounds - a MediaPlayer or many?

    Hello!

    I use the MediaPlayer in QML object.

    Problem: If I have 10 items, and when you touch an object sound... then plays with a MediaPlayer, the sound that plays must finish before its different can begin. (Or you can write the code for "stop the existing sound and plays another"). Whatever it is, you can have a musical whirl when you click each object.

    Current solution: Add a MediaPlayer component to each object, so when you type this object, he plays his own MediaPlayer. Sounds amazing because sounds overlap. In a game, if you hit the fastest objects that their noise can play, it sounds good as the boops/dings/pings are nicely stacked as they sound.

    However, I think that this could be taken memory useless? For example if I had 100 items, I don't think I would 100 elements of MediaPlayer set?

    Is there a better way to make its competitor in QML?

    Select this check box.   They used several simultaneous sounds with a single soundmanger.

    https://github.com/BlackBerry/presentations/tree/master/2012-BlackBerryJam-Americas/JAM09/BaDumTss

  • How to play a sound file before you exit an application?

    Hey guys, I'm a newbie.

    I need dev an app it will play a sound file(mp3 perhaps) before release the app that my code is as follows:

    playAudio();       UiApplication.getUiApplication().invokeLater(new Runnable() {
                    public void run() {
                        close();
                    }
                }, 500, false);
    
    -------------------------------------------------- ----------------
    
        private void playAudio() {
            // first we need to find the supported content types
            String types[] = Manager.getSupportedContentTypes(null);
            for (int cnt = types.length - 1; cnt >= 0; --cnt) {
                if (types[cnt].equals("audio/mpeg")) {
                    // this sample demonstrates playing an MP3 file that has been
                    // added as a resource to the project
                    try {
                        // retrieve the MP3 file
                        InputStream is = getClass().getResourceAsStream(
                                "/sound/sound.mp3");
                        // create an instance of the player from the InputStream
                        Player player = javax.microedition.media.Manager
                                .createPlayer(is, "audio/mpeg");
                        // player.addPlayerListener(this);
                        player.realize();
                        player.prefetch();
    
                        VolumeControl volumeControl = (VolumeControl) player
                                .getControl("VolumeControl");
                        volumeControl.setLevel(100);
    
                        // start the player
                        player.start();
    
                    } catch (Exception ex) {
                    }
                } else if (types[cnt].equals("audio/x-wav ")) {
                    // this is where you would play wav files
                } else if (types[cnt].equals("audio/midi ")) {
                    // this is where you would play midi files
                }
    
            }
        }
    

    the above code works fine on the Simulator, but not bad in real device (bb 9550). It closed just the app without playing the audio file. does anyone have a better solution?

    (Note: the mp3 file is very short, less than 0.5 s)

    first of all, I suggest you not to use invokelater like that, it's mainly to put things in the event queue and a system.exit does not queue. You can use a thread or a timer.

    Second, I guess that 500 ms is not enough time for your system to play audio properly. I also suggest to put the audio player in an own thread.

  • How to play a sound stored in myRIO

    Hello

    How could I call a file saved in the usr/local/sbin in myRIO and send it to play? Thank you...

    I made this way. I turned the sound sample in a table (sound sample) and in another VI, I read this sample (creator of the ring). It works very well.

  • How to play a sound in Flash builder?

    so I code that plays an mp3 from my file sounds... I want to change the function (code below) so that it plays at random one of the mp3 files in the folder rather than a specific mp3 file sounds (such as it is now configured)... I googled ve it on the net, but nothing is done I'm really stuck and any help would be greatly appreciated!  Thank you in advance!

    private var soundClip:Sound;

    private var soundClipChannel:SoundChannel;

    protected function play(clip:String):void

    {

    If(soundClipChannel! =null) {}

    soundClipChannel.stop ();

    }

    soundClip = new Sound (new URLRequest (' sounds /' clip + ".mp3"));

    soundClipChannel = soundClip.play ();

    }

    Also how do we configure link? I read online that my .mp3 files must have the names of defined link up... how should I do this?

    I am new to flash builder and tried a few useless approaches to say that none of them worked...:)

    "sounds/hisknee", "sound/hisleg', ' sounds/hisshin.

    Just add ".mp3" to the latter. Yes?

  • How to play a sound on drag-and - drop?

    I have been asked to create a drag and drop game for College and I want to make sure that when an object is selected to the top/clicked on will play a little 'pop' sound and when it is placed successfully on a target, it will play a slightly different sound of "pop".

    I am using ActionScript 2.0 in Flash CS5.5.

    I've got the drag-and - déposer done, I just need to add the sound equivalent. I saw a few tutorials, but they are much too vague for me.

    Look at using the Sound class.  Google search using terms like "AS2 his tutorial.

  • How to play a sound through computer speakers when the HDMI cable is used as I can't get the audio content

    I have a desktop monitor and an Alienware Alpha I bought recently, which of course is not a speaker. I use a HDMI cable to get the video of the Alpha on the screen, but when I plug the HDMI on my monitor I can not any audio to the fate of the computer speakers. In the Alpha settings, when I try to switch the audio in HDMI mode, it is said that the HDMI is not connected or incorrectly connected. Any help is appreciated. Thank you.

    I'm not quite familiar with the Alpha console, so I can only suggest to visit their support page where you can chat with an expert.

    I hope that you can solve your problem.

  • How to play multiple files continuously in the display of files in cs6

    I have a bunch of mp3 or WAV files to the top of my window "files."   I would like to listen to them back to back without loading them on the multi-track one after the other.  Is there a way to do this?

    If you highlight the whole of each file and press F8, you will create a range of markers covering the whole of it. You can now drag these beaches in the window of markers directly to the reading list (window > Playlist), and if you press the play button on playlist, it will play them in the order that you put them in the list.

  • Play a sound

    Anyone has an idea on how to play a sound when a timer is completed in AS3?

    im making a timer and once the Timer ends, I want to have it play a sound.

    any help?

    Have you looked in the Sound class? The SoundChannel class can also be used to find out when the sound has finished playing (and other features).

  • From itunes to an mp3 CD burned on a macbook OSX 10.7.5. The cd plays a sound skreechy in the wave cd player. How can I fix it?

    Burned a cd from itunes to an mp3 on a macbook OSX 10.7.5. The cd plays a sound skreechy in the wave cd player. How can I fix it? The cd will play the mp3 in the macbook. He play the cd or access my itunes music? I burn on CD documents successfully. But I've never burned audio successfully. Please notify. Thank you.

    For problems of audio on a CD (as opposed to combustion problems do not at all), you can often clear up by re-burning at a lower speed.  Use 2 x.  This setting is available in the dialog box burn the disc.

Maybe you are looking for

  • My hotmail locked out account

    I recently sent a message to about 50 people in my address book. Since then, my account has been locked, I expect to suspicions of dissemination of spam. Following the instructions I filled in the questionnaires needed to confirm my identity and have

  • > F __I need HELP! Computer of my dad will not stay and it drives me crazy! __

      0 Hello, we left the computer on during the night and when we tried to check email he started cycling, we tried to stop it and start it again, but it gets all the way to our office in the middle of the Office for her top.then watch our spy thing wa

  • 8.15.10.2202

    I have a HP Pavilion dv6 Notebook PC, product number XG738UA #ABA. Flash has stopped working for me after I've updated. I get useful things like... The application databases NameFirefox Version8.0.1 User AgentMozilla/5.0 (Windows NT 6.1; WOW64; RV:8.

  • Networking of Ghost 15 SRD can't find Ethernet card

    I don't know when this started to become a problem, but the support for networking in the Ghost 15 SRD (System Recovery disk) can locate is the ethernet card in my W520. The adapter works correctly under Win7_Pro64. DRS uses WinPE32 to the recovery e

  • Fault Module name: llcommon.dll

    Hi people: I ran recently Dr. Clean up and now I can't keep my Second Life and InWorldz views running.  They share the same error message Fault Module name: llcommon.dll Therefore, I conclude that the problem is that a dll file has been "cleaned". Ca