-RFB Session Player 0.1.0
+RFB Session Player 0.7.0
========================
RFB Session Player is a Java application/applet for playing back RFB
session files in FBS format saved by such programs as VNC Reflector or
rfbproxy.
-Usage: java RfbPlayer FILE test.fbs
+Usage: java RfbPlayer URL file:test.fbs
+ java RfbPlayer URL http://remote.host/sessions/test.fbs
Licensing Terms
import java.awt.*;
import java.awt.event.*;
import java.io.*;
+import java.net.*;
public class RfbPlayer extends java.applet.Applet
implements java.lang.Runnable, WindowListener {
ButtonPanel buttonPanel;
VncCanvas vc;
- String sessionFileName;
+ String sessionURL;
boolean showControls;
int deferScreenUpdates;
}
try {
- FileInputStream file = new FileInputStream(sessionFileName);
- fbsStream = new FbsInputStream(file);
+ URL url = new URL(sessionURL);
+ fbsStream = new FbsInputStream(url.openStream());
rfb = new RfbProto(fbsStream);
vc = new VncCanvas(this);
buttonPanel.setMode(MODE_STOPPED);
vc.processNormalProtocol();
} catch (EOFException e) {
- file.close();
- file = new FileInputStream(sessionFileName);
- fbsStream = new FbsInputStream(file);
+ fbsStream.close();
+ fbsStream = new FbsInputStream(url.openStream());
rfb.newInputStream(fbsStream);
}
}
public void readParameters() {
- sessionFileName = readParameter("FILE", true);
+ sessionURL = readParameter("URL", true);
showControls = true;
String str = readParameter("Show Controls", false);