return;
}
try{
XmlElement header = new XmlElement("Player");
header.addAttribute("id",id);
header.addChild("alias").addValue( StringGenerator.generateUniqueId() );
System.out.println("Opening "+address+":"+port+" page:"+page);
socket = new Socket(address,80);
socket.getOutputStream().write( ("GET "+page+" HTTP/1.1\r\n").getBytes() );
socket.getOutputStream().write( ("\r\n\r\n").getBytes() );
socket.getOutputStream().write(header.toXml().getBytes());
socket.getOutputStream().flush();
InputStream iStream = socket.getInputStream();
player = new ScreenPlayer(iStream,this);
player.setRealtime(true);