- Liveshare is now unloaded when archive playback is stopped.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2546
3789f03b-4d11-0410-bbf8-
ca57d06f2519
Applet receiver = null;
receiver = RfbSharedStatic.refApplet;
long time = Long.valueOf(getParameter("time")).longValue();
+ boolean pause = (Integer.parseInt(getParameter("pause")) != 0);
+ boolean unpause = (Integer.parseInt(getParameter("unpause")) != 0);
if (receiver != null) {
- ((RfbPlayer)receiver).jumpTo(time);
+
+ if (pause) {
+ ((RfbPlayer)receiver).setPaused(true);
+ } else if (unpause) {
+ ((RfbPlayer)receiver).setPaused(false);
+ } else {
+ ((RfbPlayer)receiver).jumpTo(time);
+ }
} else
System.out.println("Couldn't jump to time: " + time + " in RfbPlayer.");
}
}
+ public void setPausedInt(String paused) {
+ // default to true (pause)
+ int pause = 1;
+
+ try {
+ pause = Integer.parseInt(paused);
+ } catch (NumberFormatException e) {
+ }
+
+ if (pause == 0) {
+ setPaused(false);
+ } else {
+ setPaused(true);
+ }
+ }
+
public void setPaused(boolean paused) {
if (showControls)
buttonPanel.setPaused(paused);