facebook

Help for handling audio files

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    Takuma
    Member

    There are several things I know already:

    To hide my audio player: (in the documentReadyHandler function)

    $(‘#m1-LostMemories-mediaplayer-container’).hide();

    To play my audio player when I click on my button on the screen:

    $(‘#m1-LostMemories-mediaplayer-player’).jPlayer(‘play’);

    Question:
    – How I can stop the song
    – How I can load another mp3 file
    – How I can let the file play in an auto-loop until I stop the song
    – How I can increase or change the volume of the song

    Thanks so much for your help !

    Heinz

    #337146

    support-michael
    Keymaster

    See the JPlayer api for the specific actions you are seeking: http://www.jplayer.org/latest/developer-guide/#jPlayer-constructor

    Here is a thread that has similar interests inculding the code below: http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=4835&hilit=jplayer

    $("#m1-audio_player-audio3-player").jPlayer("setMedia", { mp3: "ttp://205.188.215.229:8010/" });

    Note, volume control is not available in native apps at this time.

    #337182

    Takuma
    Member

    Hi Wayne

    Tanks for your quick answer. Until now, I was able to solve near all the problems. I made a separate page, where I placed 11 mobione studio audio controls. This screen is hidden from the user. My plan was, to play one of this songs, when the user enters pages. (Our app is a kind of story game. on each page a user can decide, how the story should continue, so on the different pages the user can hear the suitable music to the sceene).

    At moment I have only one problem left. When I change from one to another page, the audio control always stopps to play the song. Is there a way, to tell to the audio control, to continously play a song until I will stop it ?

    Thanks for your quick answer, we need a solution until end of the month. I developed the app together with a school class for joining a competiton. At the moment our solution is, to have a button on each page, to start the music by a click from a user, but that’s not very comfortable.

    Thanks so much, your development tool is really cool !

    Heinz

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Help for handling audio files

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