I got a trouble with JMF that seems similar to your 1st problem in http://www.javaranch.com/ubb/Forum45/HTML/000120.html
But after seeing your solution, I couldn't resolve my problem ;((
I'm a newbie to JMF, and studying the book Java How to program, 4th edition.
There're some sample programs that I'll atach :
- a RTPServer that stream media to a host with a port. (RTPServerTest to run it)
- a SimplePlayer program to play either a media file or a media locator in general.
As I understand (follow the book), I can user RTPServer to streams a mp3 file to the localhost : 127.0.0.1, port 4000
and use the SimplePlayer to play that stream (with the media locator : "rtp://127.0.0.1:4000/audio" )
* When I run the 2 applications on the same machine :
- which applications that starts later will encounter the problem : Can't open local data port : 4000
* When I run them on 2 machines :
- Both run smoothly (i.e. no error messages displayed in the console ), but I can't hear any sound !!!
I tried to change the port to 49151 like your solution, but on the same machine, the " can't open port" error happens as usual
I'm really confused.
Now I'll keep sudying JMF from the sun JMF'guide, but if you can give me some advice , or even test these programs for me, it'll help me much
Many thanks in advance
I submit my problem here : JMF - RTPServer n Player - port problem
I'm also trying to use the Darwin Streaming Server (an Apple opensource RTP/RTSP server : http://www.publicsource.apple.com/projects/streaming/)
with the intention to make it receive the audio streams from my future Java application, then distribute it (multicast/unicast). then I'll build another
application to connect and play those streams
Any idea or experience would be appreciated
Thanks again, Stanley