This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Playing Audio on Web Server via Applet using JMF  RSS feed

 
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
Boost this thread!