You need to register a status callback on your Media object.
var media = new Media(src, mediaSuccess, [mediaError], [mediaStatus]);
Simon Mac Donald
http://hi.im/simonmacdonald
On Mon, Aug 13, 2012 at 5:34 AM, Ahmad Thoriq <
thor...@gmail.com> wrote:
> Hello, I'm developing a PhoneGap application for Android and Blackberry
> using the 1.9.0 version.
> In this app, user can listen to a live audio streaming from the Web.
>
> The problem is I want to show some kind of loading screen after the user
> starts the stream (as Internet connection can be unstable therefore user
> might wait for a long time before the audio starts playing).
> How can I do that using PhoneGap Media API?
> I was able to perform a similar thing using HTML5 Audio element by
> registering callbacks for Audio events, such as "playing", "loaded", etc.
> But I want to do something similar using Media API from PhoneGap.
>
> Thank you very much.
>
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to
phon...@googlegroups.com
> To unsubscribe from this group, send email to
>
phonegap+u...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to
www.phonegap.com
>
> To compile in the cloud, check out
build.phonegap.com
>
>