-
java client-server jmf
hi java-forums! :) it's glad too be back..i need all you help guys
i am developing this client server app. basically, i have a client who requests webcam the wabcam feed from a remote camera and shows it in its panel. so far, here is the code:
Code:
MediaLocator ml = new MediaLocator("rtp://192.168.2.100:49150/video");
Player p = Manager.createRealizedPlayer(ml);
p.start();
if(p.getVisualComponent()!=null)
streamer_jpnl.add(p.getVisualComponent());
this works when the server uses the JMF studio to transmit video to this client. which means, it has to know the address of this client.
but i have to create a dynamic code for the server, wherein it listens to a client request then responses to it. (only 1 client is expected)
any ideas pls?