facebook

Embeding audio into a clicked button…

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

    fordca
    Member

    Hi there,

    I have been using mobione for a while now and I have very little app design knowledge especially in regards to writing codes of even navigating files etc. I have had a look into the discussions about this topic earlier on however I have no idea what it all means and after many failed attempts at understanding it I am still lost.

    Therefore I need to know if you could assist me with a step by step process of embedding audio onto a clicked button. I mainly get lost when it comes to finding the custom audio demo custom-js file and what to do from thereons.

    Also would it just be possible to have a button that runs javascript using my mp3 file instead and if so would you be able to provide me with a basic javascript that would do such a task in which I could just change the mp3 file I wish to use.

    I hope that makes sense and any assistance would be greatly appreciated.

    Thanks

    #333823 Reply

    Hi fordca,

    This example should be helpful for you: http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=2123

    #333825 Reply

    fordca
    Member

    thanks for the quick reply.

    I managed to get some of it to work, will let you know if I need further assistance.

    thankyou.

    #333826 Reply

    fordca
    Member

    I had one more question,

    with the background audio, would it be possible to have it start when you transition onto a new page?
    I want to have my audio play when I enter a new page so how would I go about doing that.
    Is there any possible way to have the audio on a timer that plays after say 1second of being on that particular page, and if so what sort of code would be needed to do that?

    Thanks in advance.

    #333832 Reply

    Hi fordca,

    You can call your javascript code in phoneui.postPageTransition function and use next condition:

    if(newPageId==”#m1-secondScreen”){
    playAudio();
    }

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Embeding audio into a clicked button…

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