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
On Feb 15, 1:22 pm, Boris <vanpasselbo...@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
On Feb 15, 2009, at 9:41 PM, kazoomer <kazoo...@gmail.com> wrote:
> 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.
> On Feb 15, 1:22 pm, Boris <vanpasselbo...@gmail.com> wrote:
>> 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?
> 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
> On Feb 15, 2009, at 9:41 PM, kazoomer <kazoo...@gmail.com> wrote:
> > 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.
> > On Feb 15, 1:22 pm, Boris <vanpasselbo...@gmail.com> wrote:
> >> 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?
> 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,
> > 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
> > On Feb 15, 2009, at 9:41 PM, kazoomer <kazoo...@gmail.com> wrote:
> > > 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.
> > > On Feb 15, 1:22 pm, Boris <vanpasselbo...@gmail.com> wrote:
> > >> 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?
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.
On Mar 11, 4:03 pm, Boris <vanpasselbo...@gmail.com> wrote:
> 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,
> > > 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
> > > On Feb 15, 2009, at 9:41 PM, kazoomer <kazoo...@gmail.com> wrote:
> > > > 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.
> > > > On Feb 15, 1:22 pm, Boris <vanpasselbo...@gmail.com> wrote:
> > > >> 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?