} else {
url = new URL(sessionURL);
}
- newFbsConnection();
- fbs.setTimeOffset(initialTimeOffset);
+ newFbsConnection(initialTimeOffset);
rfb = new RfbProto(fbs);
vc = new VncCanvas(this);
autoPlay = false;
}
fbs.close();
- newFbsConnection();
- fbs.setTimeOffset(newTimeOffset);
+ newFbsConnection(newTimeOffset);
rfb.newSession(fbs);
vc.updateFramebufferSize();
} catch (NullPointerException e) {
* Open new connection specified by this.url, save new FbsInputStream in
* this.fbs.
*
+ * @param timeOffset set this as current time position in the newly created
+ * FbsInputStream object.
* @throws java.io.IOException
*/
- void newFbsConnection() throws IOException {
+ void newFbsConnection(long timeOffset) throws IOException {
URLConnection connection = url.openConnection();
fbs = new FbsInputStream(connection.getInputStream());
+ fbs.setTimeOffset(timeOffset);
}
public void setPausedInt(String paused) {