Results 1 to 2 of 2
  1. #1
    JavaJenius is offline Member
    Join Date
    Mar 2008
    Posts
    4
    Rep Power
    0

    Default How do i play an audio clip from a server?

    I am trying to play an audio file on another server, for example:

    Java Code:
    URL url = new URL("http://example.com/hello.wav");
    AudioClip click = Applet.newAudioClip(url);
    click.play();


    This doesn't seem to be working, can anyone tell me what I'm doing wrong?
    Thanks very much.

  2. #2
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    8

    Default

    Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
    Want to voice your opinion on your IDE/Editor of choice? Vote now!
    Got a little Capt'n in you? (drink responsibly)

Similar Threads

  1. Please help Transmitting Audio and Video using RTP
    By pedaramanareddy in forum New To Java
    Replies: 0
    Last Post: 01-03-2008, 02:39 PM
  2. play() and mp3
    By willemjav in forum Advanced Java
    Replies: 3
    Last Post: 12-23-2007, 02:50 PM
  3. PeerStream Audio Video Streaming Server 4.55
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 10-27-2007, 07:34 PM
  4. Audio Recorder
    By elizabeth in forum Java Applets
    Replies: 1
    Last Post: 08-06-2007, 09:21 PM
  5. PeerStream Audio Video Streaming Server 4.61
    By levent in forum Java Software
    Replies: 0
    Last Post: 07-31-2007, 07:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •