Un ejemplo básico de un chat en java lo verás en esta url:
http://www.ilustrados.com/publicacio...EVJSmZuEcA.php, tendrás que aprender lo básico de comunicaciones en java para que no te pierdas.
Y para que transmitas imágenes de video en java puedes usar este código:
public void run() {
try {
out = new PrintWriter(socket.getOutputStream(), true);
//imgpanel = new ImagePanel();
String str1 = "vfw:CompUSA PC Camera:0";
String str2 = "vfw:Microsoft WDM Image Capture (Win32):0";
di = CaptureDeviceManager.getDevice(str2);
ml = new MediaLocator("vfw://0");
try {
player = Manager.createRealizedPlayer(ml);
} catch (Exception npe) {
System.out.println("Player Exception:" + npe);
}
player.start();
Component comp;
if ((comp = player.getVisualComponent()) != null) {
// Grab a frame
FrameGrabbingControl fgc = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbi ngControl");
buf = fgc.grabFrame();
btoi = new BufferToImage((VideoFormat) buf.getFormat());
blah=createImage(btoi);
JFrame f =new JFrame("webcam");
Container frameCP = f.getContentPane();
JMFPlayer p = new JMFPlayer(f,player);
frameCP.add(BorderLayout.CENTER,p);
f.setSize(200,200);
f.setVisible(true);
//Send the image over the socket
//out.println(btoi);
//playerclose();
}
Un saludo.