W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1999

Re: how to play .wav file

From: Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>
Date: Fri, 20 Aug 1999 20:12:02 +0200
Message-Id: <37BD9A72.779CB39E@informatik.med.uni-giessen.de>
To: "Bi, Xiaolian" <xbi@tri.sbc.com>
CC: "'www-jigsaw@w3c.org'" <www-jigsaw@w3c.org>

Hi !

----

"Bi, Xiaolian" wrote:

> Thanks for the replay, but I am not sure I get what you are saying. Let me
> explain my problem more, and maybe you ca help me more. Thanks in advance.
>
> I have a servlet that output an html file, in which I have a hyperlink to a
> .wav file. The html code related to wav file embedded in the servlet code
> looks something like this:

>
> ...
> <table>
> <tr>
> <td><a href="audio/wavfile.wav"><img src="images/sound.gif"></td>
> </tr>
> ...

Does the servlet generate the audio file ?? Then you have to set the mime-type
in the servlet, e.g. ServletResponse.setContentType().

Otherwise run JigAdmin(2), open the resource which matches the the
"audiofile.wav" and check the HTTPFrame if "mime-type" is set to "audio/wav"
and not to something like "application/octet-stream".

If you want to change this for all other *.wav files, step into JigAdmin(2),
select
the "Indexers" panel and create a new file resource "wav" which contains the
settings (including the mime-type) for *.wav-files.
Any new indexed file will contain the correct mime-type...

----

Bye,
Roland

--
  __ .  . __
 (o.\ \/ /.o) Roland Mainz                               C/JAVA programmer
  \__\/\/__/  Roland.Mainz@informatik.med.uni-giessen.de MPEG specialist
  /O /==\ O\  gisburn@informatik.med.uni-giessen.de      Sun&Unix programmer
 (;O/ \/ \O;) TEL +49 (0) 641/99-13193  FAX +49 (0) 641/99-41359
Received on Friday, 20 August 1999 14:12:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:33 GMT