- This topic has 13 replies, 3 voices, and was last updated 11 years, 7 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.
November 28, 2013 at 8:41 am #344857
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?
November 28, 2013 at 9:04 am #344860
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!
November 29, 2013 at 12:33 pm #344894
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.
December 2, 2013 at 6:46 am #344926
BryanBudelonMemberWhat can be done about the issue of buffering?
URL of Streaming: http://audio.tupa.am.br:9986/
December 2, 2013 at 8:00 am #344931
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.
December 2, 2013 at 8:34 am #344933
BryanBudelonMemberOkay.
Thanks for helping.December 2, 2013 at 10:48 am #344941
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.December 3, 2013 at 6:17 am #344959
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.
December 3, 2013 at 9:17 am #344961
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.
December 3, 2013 at 10:58 am #344965
BryanBudelonMemberGot it. Thanks!
But motive for use PhoneGap for reproducing of Streaming is because the Widget Audio not reproduces in background.
December 3, 2013 at 11:11 am #344967
support-michaelKeymaster>background
Got it. I forgot your goal is for you app to run in background and provide audio.
December 5, 2013 at 6:25 am #345008
BryanBudelonMemberYes, is goal.
December 5, 2013 at 8:22 am #345012
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