Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4315341

javax.sound.sampled.spi.MixerProvide is requested over network in applets

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • client-libs
    • 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)
      ======================================================================

            fbomerssunw Florian Bomers (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: