Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Playing Audio on Web Server via Applet using JMF

 
Jean Dobbs
Greenhorn
Posts: 1
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic