}
}
private void playerBroadCast(String str) {
if (player instanceof IServiceCapableConnection) {
IServiceCapableConnection sc = (IServiceCapableConnection) player;
if (!str.equals("off")) {
String vals[] = (settings.readSetting("vself")).split("_");
int width = Integer.parseInt(vals[0]);
int height = Integer.parseInt(vals[1]);
int fps = Integer.parseInt(vals[2]);
int quality = Integer.parseInt(vals[3]);
boolean pushtotalk = settings.getBoolean(GUISettings.pushtotalk);
sc.invoke("publish", new Object[] { str, width, height, fps,
quality, pushtotalk });
// sc.invoke("publish", new Object[] { str, 160, 120, 8, 85 });
new Thread(new Runnable() {
public void run() {
try {
Thread.sleep(STREAM_CONNECT_DELAY);
} catch (Exception e) {
e.printStackTrace();
}
grabberPlayPlayer(1);
state.set(State.values.driverstream, true);
}
}).start();
if (str.equals("camera") || str.equals("camandmic")) {
monitor("on");
Util.debug("monitor on", this);
}
Util.log("OCULUS: player broadcast start", this);
} else {
sc.invoke("publish", new Object[] { "stop", null, null, null,null,null });
grabberPlayPlayer(0);
state.set(State.values.driverstream, false);
Util.log("OCULUS: player broadcast stop",this);
}
}