aspose file tools*
The moose likes Applets and the fly likes Playing Audio on Web Server via Applet using JMF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Playing Audio on Web Server via Applet using JMF" Watch "Playing Audio on Web Server via Applet using JMF" New topic
Author

Playing Audio on Web Server via Applet using JMF

Jean Dobbs
Greenhorn

Joined: Sep 16, 2011
Posts: 1

Hi,

I'm trying to play an audio file using JMF. Audio is on the server and I am sending the servlet the path for the same via applet. In servlet audio streaming is done for the given file and the context path of the file is set in the applet. Then I created the player and I am trying to play the audio but I am getting the following exception:

java.io.IOException: Unable to open a URL connection
javax.media.NoPlayerException: Error instantiating class: com.sun.media.protocol.http.DataSource : java.io.IOException: Unable to open a URL connection

URL has the context path of the audio file on the server. Can anyone help me to identify where I am going wrong??

Thanks in advance.....
 
 
subject: Playing Audio on Web Server via Applet using JMF