facebook

dynamic mp3 url to audio player: CLOSED

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

    upasana
    Member

    Can we assign a dyamic url to the audio player widget?

    I have tried out.

    $("div#m1-audiotest-audio1-container").attr('data-m1-audio-url', "audio/song2.mp3");

    But could not get things working out.

    #334952 Reply

    Brandon
    Member

    I had a hard time with this also.

    
    //set media
    $("#m1-index-audio1-player").jPlayer("setMedia", { mp3: "http://urltofile.pp3 });
    //play media
    $("#m1-index-audio1-player").jPlayer("play");
    
    #334959 Reply

    upasana
    Member

    Hi thanks. But this is not working out for me. My url is a local one.

    #334961 Reply

    upasana
    Member

    To the mobione support team,

    Kindly also include the usage of audio widget in the Javascript Snippets at

    http://www.genuitec.com/mobile/docs/javaScriptSnippets/javaScriptSnippets.html

    So we can play around the widget.

    Thanks

    #334963 Reply

    Brandon
    Member

    You should be able to just include the path to the mp3 file.

    Support said they are working on a audio api that should help.

    #334984 Reply

    upasana
    Member

    Thanks. It worked out. 🙂

    var audiourl= "audio/audio02.mp3";
        
    //set media
    $("#m1-audiotest-audio1-player").jPlayer("setMedia", { mp3: audiourl });
    #334989 Reply

    Brandon
    Member

    Glad to help

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: dynamic mp3 url to audio player: CLOSED

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