start up sound

33 views
Skip to first unread message

Boris

unread,
Feb 15, 2009, 4:22:55 PM2/15/09
to phonegap
Hi,
I'm looking for a way to have a musicfile, that begins to play
automaticly when you start an app.

Is there some html code that I can implement or is there an other way?

thanks

kazoomer

unread,
Feb 15, 2009, 9:41:45 PM2/15/09
to phonegap
Keep in mind that music clips are limited to 30 seconds and as of
right now, you can't stop playing them. They just stop when they have
finished.
That being said, you should be able to make it happen on init when the
app loads using JavaScript.

something like

var init = function() {
Device.init();
Device.PlaySound('some.wav');
}

..

<body onload="init();">...</body>


Good Luck

Rob Ellis
Phonegap.com
Nitobi.com

Jeremy Edgell

unread,
Feb 15, 2009, 11:38:13 PM2/15/09
to phon...@googlegroups.com
Can I make the suggestion that while this may sound like a good idea,
is this going to cost you processing time at start up (ie make your
app start slower) and does it really add to the user experience, or is
this a "hey look what I can do" feature? I use the apps on my phone
for (mainly) productivity related purposes and have dumped a few paid
apps in favor of having an app that simply opens quickly enough for me
to get or record the info that's on my mind at that point in time. I'm
in no way knocking the idea(cuz I don't know anything about your app
or its intended audience), I'm just the eternal usability tester.(sad
when your day job follows you home, no?)

Sent from my iPhone

Boris

unread,
Feb 19, 2009, 11:17:36 AM2/19/09
to phonegap
I tried to do it with a .js file and the body code, but it doens't
work,
can someone make a sample?

On 16 feb, 05:38, Jeremy Edgell <edge...@gmail.com> wrote:
> Can I make the suggestion that while this may sound like a good idea,  
> is this going to cost you processing time at start up (ie make your  
> app start slower) and does it really add to the user experience, or is  
> this a "hey look what I can do" feature? I use the apps on my phone  
> for (mainly) productivity related purposes and have dumped a few paid  
> apps in favor of having an app that simply opens quickly enough for me  
> to get or record the info that's on my mind at that point in time. I'm  
> in no way knocking the idea(cuz I don't know anything about your app  
> or its intended audience), I'm just the eternal usability tester.(sad  
> when your day job follows you home, no?)
>
> Sent from my iPhone
>

Boris

unread,
Mar 11, 2009, 4:03:48 PM3/11/09
to phonegap
anyone?
I tried to make an app with startup sound via the sample in the www-
folder of phonegap,
but it doesn't work for me...


On 19 feb, 17:17, Boris <vanpasselbo...@gmail.com> wrote:
> I tried to do it with a .js file and the body code, but it doens't
> work,
> can someone make a sample?
>
> On 16 feb, 05:38, Jeremy Edgell <edge...@gmail.com> wrote:
>
>
>
> > Can I make the suggestion that while this maysoundlike a good idea,  

awaybbl

unread,
Mar 15, 2009, 2:25:17 PM3/15/09
to phonegap
The only thing that I can think of is that you might need a little bit
of a delay before you can start playing any sounds to give the page
time to load, and for the phonegap to become fully initialized.
Reply all
Reply to author
Forward
0 new messages