- This topic has 13 replies, 3 voices, and was last updated 10 years, 11 months ago by Brandon.
-
AuthorPosts
-
BryanBudelonMemberHi 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.
BrandonMemberIs 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?
BryanBudelonMemberI’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!
BrandonMemberWithout the url of the audio my best guess is that its buffering as it has to load the audio before it can play it.
BryanBudelonMemberWhat can be done about the issue of buffering?
URL of Streaming: http://audio.tupa.am.br:9986/
BrandonMemberAnytime 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.
BryanBudelonMemberOkay.
Thanks for helping.
BrandonMemberNo 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.
BryanBudelonMemberI 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.
support-michaelKeymasterNetwork 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.
BryanBudelonMemberGot it. Thanks!
But motive for use PhoneGap for reproducing of Streaming is because the Widget Audio not reproduces in background.
support-michaelKeymaster>background
Got it. I forgot your goal is for you app to run in background and provide audio.
BryanBudelonMemberYes, is goal.
BrandonMemberAs 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.
-
AuthorPosts