Sound in iPhone Web Apps

167 views
Skip to first unread message

Don Shin

unread,
Jul 1, 2007, 5:52:25 PM7/1/07
to iPhoneWebDev
Hi Folks,

My company created Lumina, a casual game for iPhone:

http://www.luminagame.com

Performance is a bit sluggish on the iPhone, but the most
disappointing aspect is the use embedded sound in Safari: it seems
like all media files go into the full-screen custom media player
interface when clicked. This basically makes it impossible to play
back custom sounds when buttons/widgets are clicked.

Has anyone been able to figure out how to play sound within iPhone's
Safari *without* the full-screen interface? Or have seen a site that
behaves that way?

Thanks,
Don

Christopher Allen

unread,
Jul 1, 2007, 6:52:04 PM7/1/07
to iphone...@googlegroups.com

So far I've not seen any web site on the iPhone that has embedded
media of any kind that displays in the iSafari browser window.

I am no expert at embedding media in web pages, but I do remember an
Apple employee pointing to the public web page
http://www.apple.com/quicktime/tutorials/embed.html and saying to be
careful and make sure that you use the techniques they recommend in
there. At first glance, I don't see anything specifically that you are
doing wrong though.

My only thought is that I note that your page has the embed in the
following form:

<EMBED width="0" height="0"
src="sounds/set1/C.mp3"
TYPE="video/quicktime"
PLUGINSPAGE="www.apple.com/quicktime/download"
autostart="false"
controller="false"
name="C"
enablejavascript="true"></EMBED>

The TYPE you've chosen is "video/quicktime" which may mean that it
thinks it should use the quicktime player. Maybe try the "audio/mpeg"
type?

Let us know here if that works?

-- Christopher Allen

nroose

unread,
Jul 4, 2007, 5:32:39 PM7/4/07
to iPhoneWebDev
Any progress anyone? Any sound coming straight from the browser on
the iPhone?

On Jul 1, 3:52 pm, "Christopher Allen" <Christoph...@iPhoneWebDev.com>
wrote:


> On 7/1/07, Don Shin <don.s...@gmail.com> wrote:
>
> > My company created Lumina, a casual game for iPhone:
>
> >http://www.luminagame.com
>
> > Performance is a bit sluggish on the iPhone, but the most
> > disappointing aspect is the use embedded sound in Safari: it seems
> > like all media files go into the full-screen custom media player
> > interface when clicked. This basically makes it impossible to play
> > back custom sounds when buttons/widgets are clicked.
>
> > Has anyone been able to figure out how to play sound within iPhone's
> > Safari *without* the full-screen interface? Or have seen a site that
> > behaves that way?
>
> So far I've not seen any web site on the iPhone that has embedded
> media of any kind that displays in the iSafari browser window.
>
> I am no expert at embedding media in web pages, but I do remember an

> Apple employee pointing to the public web pagehttp://www.apple.com/quicktime/tutorials/embed.htmland saying to be

Elliot

unread,
Jul 5, 2007, 1:48:05 AM7/5/07
to iPhoneWebDev
> <EMBED width="0" height="0"
> src="sounds/set1/C.mp3"
> TYPE="video/quicktime"
> PLUGINSPAGE="www.apple.com/quicktime/download"
> autostart="false"
> controller="false"
> name="C"
> enablejavascript="true"></EMBED>

This just allows you to view things in the fullscreen viewer...
Interestingly javascript interaction with quicktime objects is
completely disabled/not implemented. No hope of going
"video_div.Play()" :-(.

--
Elliot

aimfire

unread,
Jul 5, 2007, 5:03:08 AM7/5/07
to iPhoneWebDev
> like all media files go into the full-screen custom media player
> interface when clicked. This basically makes it impossible to play
> back custom sounds when buttons/widgets are clicked.

This is also driving me nuts as well... hopefully there will be a
solution soon...!

Don Shin

unread,
Jul 6, 2007, 9:55:00 AM7/6/07
to iPhoneWebDev
Hi Christopher,

I tried replying earlier, but Google was acting funky at the time-
unfortunately, the mime type change did not make it work; but thanks
for the suggestion. I'll see you soon at the iPhone dev camp.

Thanks,
Don

On Jul 1, 6:52 pm, "Christopher Allen" <Christoph...@iPhoneWebDev.com>
wrote:


> On 7/1/07, Don Shin <don.s...@gmail.com> wrote:
>
> > My company created Lumina, a casual game for iPhone:
>
> >http://www.luminagame.com
>
> > Performance is a bit sluggish on the iPhone, but the most
> > disappointing aspect is the use embedded sound in Safari: it seems
> > like all media files go into the full-screen custom media player
> > interface when clicked. This basically makes it impossible to play
> > back custom sounds when buttons/widgets are clicked.
>
> > Has anyone been able to figure out how to play sound within iPhone's
> > Safari *without* the full-screen interface? Or have seen a site that
> > behaves that way?
>
> So far I've not seen any web site on the iPhone that has embedded
> media of any kind that displays in the iSafari browser window.
>
> I am no expert at embedding media in web pages, but I do remember an

> Apple employee pointing to the public web pagehttp://www.apple.com/quicktime/tutorials/embed.htmland saying to be

D. Rich

unread,
Jul 6, 2007, 11:01:08 AM7/6/07
to iPhoneWebDev
I have tried countless combinations of <object> & <EMBED> and every
different option that I could find, and everything opens up in the
full screen Quicktime window.

The Apple Documentation is no help.
I don't know how or if it can be done.

D. Rich


On Jul 6, 9:55 am, Don Shin <don.s...@gmail.com> wrote:
> Hi Christopher,
>
> I tried replying earlier, but Google was acting funky at the time-
> unfortunately, the mime type change did not make it work; but thanks
> for the suggestion. I'll see you soon at the iPhone dev camp.
>
> Thanks,
> Don
>
> On Jul 1, 6:52 pm, "Christopher Allen" <Christoph...@iPhoneWebDev.com>
> wrote:
>
> > On 7/1/07, Don Shin <don.s...@gmail.com> wrote:
>
> > > My company created Lumina, a casual game for iPhone:
>
> > >http://www.luminagame.com
>
> > > Performance is a bit sluggish on the iPhone, but the most
> > > disappointing aspect is the use embedded sound in Safari: it seems
> > > like all media files go into the full-screen custom media player
> > > interface when clicked. This basically makes it impossible to play
> > > back custom sounds when buttons/widgets are clicked.
>
> > > Has anyone been able to figure out how to play sound within iPhone's
> > > Safari *without* the full-screen interface? Or have seen a site that
> > > behaves that way?
>
> > So far I've not seen any web site on the iPhone that has embedded
> > media of any kind that displays in the iSafari browser window.
>
> > I am no expert at embedding media in web pages, but I do remember an

> > Apple employee pointing to the public web pagehttp://www.apple.com/quicktime/tutorials/embed.htmlandsaying to be

aimfire

unread,
Jul 6, 2007, 7:17:33 PM7/6/07
to iPhoneWebDev
Thanks for trying, D. Rich....
My feelings are the same, not sure if it can be done, will hopefully
be addressed in the next version of iPhone Safari.

Good luck at the iPhone dev camp, maybe a workaround will be
discovered...

> > > Apple employee pointing to the public web pagehttp://www.apple.com/quicktime/tutorials/embed.htmlandsayingto be

brainchild2b

unread,
Jul 7, 2007, 5:17:24 AM7/7/07
to iPhoneWebDev

At wwdc apple clearly stated that all media would be played in a
separate window ONLY. Your only hope is apple releasing flash.

Reply all
Reply to author
Forward
0 new messages