Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Simple Sound Example using JavaScript on iPhone?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
waca  
View profile  
 More options May 4, 6:27 pm
From: waca <wacro...@gmail.com>
Date: Mon, 4 May 2009 15:27:57 -0700 (PDT)
Local: Mon, May 4 2009 6:27 pm
Subject: Simple Sound Example using JavaScript on iPhone?
Hi All--

I've gone through the latest download (0.7.2) and have been reading
through various sound/audio posts here and on the Wiki, but am
stumped.

What I'm trying to do is generate a simple sound on a web page, which
works great everywhere but on the iPhone (it always wants to use the
QuickTime player). So I've been looking into a JavaScript method to
generate sound on the iPhone. All I want to do is "play sound
XYZ.wav".

After diving into QuickConnectiPhone, I discovered PhoneGap, and have
been very encouraged by the simplicity of design (not having an entire
framework included).

But... I cannot figure out how to include the simple javascript
Device.playSound('XYZ.wav'); call because I am unclear as to how to
set up the rest of PG (the PG Class folders, etc.) In fact, I'm
slightly confused as to whether or not I can do this at all without
having to build a custom iPhone app using XCode.

So my question is two-fold:

(1) Can the PhoneGap API be called from the iPhone using only
JavaScript (i.e. from a web page in Safari on the iPhone), without
having to build an actual iPhone App?

(2) If it can, is there a working example of how to set up the folders
on the server with any path substitution (e.g. replace SOURCE_PATH
with your URL) indicated?

Thanks in advance!
--Wayne


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Prescod  
View profile  
 More options May 4, 7:16 pm
From: Paul Prescod <pres...@gmail.com>
Date: Mon, 4 May 2009 16:16:49 -0700
Local: Mon, May 4 2009 7:16 pm
Subject: Re: [PhoneGap] Simple Sound Example using JavaScript on iPhone?

On Mon, May 4, 2009 at 3:27 PM, waca <wacro...@gmail.com> wrote:

> Hi All--

> So my question is two-fold:

> (1) Can the PhoneGap API be called from the iPhone using only
> JavaScript (i.e. from a web page in Safari on the iPhone), without
> having to build an actual iPhone App?

No, that would be a security hole. Web apps are not allowed to (for example)
read your contact list.

> (2) If it can, is there a working example of how to set up the folders
> on the server with any path substitution (e.g. replace SOURCE_PATH
> with your URL) indicated?

I haven't tried it myself, but if you look at "Notification.js" you'll see
that this should work:

        new Media('beep.wav').play();

 Paul Prescod


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
waca  
View profile  
 More options May 5, 12:55 am
From: waca <wacro...@gmail.com>
Date: Mon, 4 May 2009 21:55:07 -0700 (PDT)
Local: Tues, May 5 2009 12:55 am
Subject: Re: Simple Sound Example using JavaScript on iPhone?
Thanks, Paul -- had a feeling you were going to say that about
(1)... ;)

Guess I'll just have to wait for v3 and actual support for the <audio>
tag. Hope it's coming soon(tm).

Cheers.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google