Scriptaculous - Sound.play problem

20 views
Skip to first unread message

Doug

unread,
Oct 6, 2008, 8:15:24 AM10/6/08
to Prototype & script.aculo.us
Sound.play works perfectly when the url I specify is a link to
the .wav file I wish to play.

However, I need the wav file to be dynamic on the server side. So I
wish to have the url specify a link such as MyGetWav.aspx?file=t.wav

This method appears to be downloaded in the wav file, but the sound is
never played and there are no javascript errors reported.

Using firefox, it appears the headers sent using both methods are the
same, but yet only 1 is played.

If anyone has any ideas, the would be much appreciated. I have a
hunch that I'm either doing something slightly wrong.

Thanks,

Doug

Eric

unread,
Oct 9, 2008, 8:31:49 AM10/9/08
to Prototype & script.aculo.us
Hi

On Oct 6, 2:15 pm, Doug <jo...@wizebid.com> wrote:
> However, I need the wav file to be dynamic on the server side.  So I
> wish to have the url specify a link such as MyGetWav.aspx?file=t.wav

Have you check that your asp script sets the correct content-type
(should be something like "audio/wav") ?
IIRC, there is an attribute or a methode for doing this in the
Response object.

Eric

Macrogrand

unread,
Oct 10, 2008, 3:34:54 AM10/10/08
to Prototype & script.aculo.us

Doug

unread,
Oct 10, 2008, 2:10:25 PM10/10/08
to Prototype & script.aculo.us
Yes, I've tried "audio/wav" and "audio/x-wav". Neither work. I can
see that it actually downloads the file, but it never gets played.

Thanks for the help.

Doug

Jerod Venema

unread,
Oct 12, 2008, 11:08:49 AM10/12/08
to prototype-s...@googlegroups.com
A while back, I had a server running IIS that for some reason had a bunch of the mime types removed....I don't know if it was IIS defaults, or the server admin before me who'd turned them off, but they were disabled. It'd be worth a look, anyway.

-Jerod
--
Jerod Venema
Senior Software Engineer
Nth Penguin, LLC
http://www.nthpenguin.com
(919) 368-5105
---
WebWidgetry.com / MashupStudio.com
Future Home of the World's First Complete Web Platform

Doug

unread,
Oct 12, 2008, 3:17:20 PM10/12/08
to Prototype & script.aculo.us
Good suggestion. However, I have verified that the correct mime type
is being received by the browser using Firefox.

Thanks,

Doug
Reply all
Reply to author
Forward
0 new messages