blob: c73fe25ea408bb7ed2cfcf2193618f41e8f23162 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package com.HorizonLive.RfbPlayer;
import java.applet.*;
public class PARfbSender extends Applet {
public void init() {
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) {
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.");
}
}
|