facebook

Delay in play audio

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

    BryanBudelon
    Member

    Hi everybody.

    Hi everybody.
    I’m trying develop an app of Rádio. And I’m using PhoneGap for play. But, have delay between moment of click and start reproducing. I no have idea of motive this problem.

    Anybody have any tip or solution?

    Thanks for the attention.

    #344857 Reply

    Brandon
    Member

    Is this a local file on the device or hosted somewhere?
    If hosted can you point a link to it.

    Also, is there a particular reason you are not using the audio widget included with mobione?

    #344860 Reply

    BryanBudelon
    Member

    I’m trying reproducing an URL of Streaming.
    The reason of not using the audio widget is because i need that ‘play’ in background.

    Thanks for help!

    #344894 Reply

    Brandon
    Member

    Without the url of the audio my best guess is that its buffering as it has to load the audio before it can play it.

    #344926 Reply

    BryanBudelon
    Member

    What can be done about the issue of buffering?

    URL of Streaming: http://audio.tupa.am.br:9986/

    #344931 Reply

    Brandon
    Member

    Anytime you play from the internet there can be buffering, I dont think there is much that could be done (except a pre-load, but not sure if that’s possible). I will try to check it for you tonight to make sure that’s what it is.

    #344933 Reply

    BryanBudelon
    Member

    Okay.
    Thanks for helping.

    #344941 Reply

    Brandon
    Member

    No problem.
    As a test if you want to do a new project and add the Audio widget and set the url to your stream and see if it also has a delay. This should tell you if its a buffering issue or something with the Cordova API
    Just a thought.

    #344959 Reply

    BryanBudelon
    Member

    I had already tested, and the problem probably is buffer. Because with widget audio the delay is smaller.

    However, the big problem is how to solve it.

    #344961 Reply

    support-michael
    Keymaster

    Network latency and buffering are a fact of life for streaming media. I discussed this with the dev team to provide activity feedback when buffering in a future release. For the 2.5 widget you might consider using the audio widget’s events to provide some level of feedback between the “play” and “playing” events such as using phoneui.showActivityDialog() and phoneui.hideActivityDialog() respectively.

    #344965 Reply

    BryanBudelon
    Member

    Got it. Thanks!

    But motive for use PhoneGap for reproducing of Streaming is because the Widget Audio not reproduces in background.

    #344967 Reply

    support-michael
    Keymaster

    >background

    Got it. I forgot your goal is for you app to run in background and provide audio.

    #345008 Reply

    BryanBudelon
    Member

    Yes, is goal.

    #345012 Reply

    Brandon
    Member

    As a possible solution you could add a sound file into the app to play for a few seconds while the streaming one buffers. I have seen this with other apps.

Viewing 14 posts - 1 through 14 (of 14 total)
Reply To: Delay in play audio

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