facebook

Re Audio Widget

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #351796 Reply

    pratiti
    Member

    Hello,

    1) As soon as display times out, the active audio player stops.
    How to keep it playing?

    2) Also, I want to play multiple audio files successively without any gap. I used setTimeout to achieve this, but it introduced some small pause between files, please help:

    audioWidget1.play();
            var musicTimeout = setTimeout(function(){ 
                audioWidget1.pause();
                audioWidget2.play();
                setTimeout(function(){
                    audioWidget2.pause();
                    audioWidget3.play();
                    setTimeout(function(){
                        audioWidget3.pause();
                        audioWidget4.play();
                        setTimeout(function(){
                            audioWidget4.pause();
                        },time4);
                    },time3);
                },time2);
                },time1);
    #351826 Reply

    pratiti,

    The audio widget probably isn’t the best for what you are trying to do. I suggest you take a look at the Cordova Media API: http://docs.phonegap.com/en/2.9.0/cordova_media_media.md.html#Media

    The audio widget only allows one to play at a time, so calling the play command again will stop the current sound.

    You can also check out this post which has some information on binding events.
    http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=7014

    Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Re Audio Widget

You must be logged in to post in the forum log in