-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0
-
rc1
-
generic
-
generic
Name: rlT66838 Date: 02/24/2000
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)
There is a problem with applets using JavaSound. I've got JDK 1.3RC1 and
prepared the applet to capture audio with javax.sound.sampled.*. I've
got Java Plug-in 1.3.0RC1 and Netscape Communicator 4.7. I've got all
the nesessary permissions enabled in my java.policy so the capturing
occurs without any exceptions. The problem is: when I load my applet
from local host or from http://localhost/applet.htm (and from the
webserver on the same subnet with me) the capturing starts almost
immediately. When I run the applet from the remote server over the
Internet (64 kbit/s link), the capturing begins after a noticable delay
- the time is being spent in
line = (SourceDataLine) AudioSystem.getLine(info);
line.open(format, line.getBufferSize());
calls (or somewhere over there). The code is modelled after
CapturePlayback.java of JavaSoundDemo 1.3RC1.
I've sniffed my net and found JS issues the HTTP request to my server:
GET /MyApplet/META-INF/services/javax.sound.sampled.spi.MixerProvider HTTP/1.1
and another rather interesting one also:
GET /MyApplet/null HTTP/1.1
The first one is issued several times every time I try to initiate
capture or playback. Not to be mentioned I don't have this files on my
server, and it replies with '404 File Not Found'. With slow connection (I mean 64 kbit/s and slower)
this conversation takes some time and cause a noticable delay.
(Review ID: 101664)
======================================================================