use of org.red5.server.api.scope.IScope in project bigbluebutton by bigbluebutton.
the class PresentationService method getSlideInfo.
public void getSlideInfo() {
IScope scope = Red5.getConnectionLocal().getScope();
log.debug("Getting slide info for meeting [{}]", scope.getName());
presentationApplication.getSlideInfo(scope.getName(), getBbbSession().getInternalUserID());
}
use of org.red5.server.api.scope.IScope in project bigbluebutton by bigbluebutton.
the class PresentationService method resizeAndMoveSlide.
public void resizeAndMoveSlide(Map<String, Object> msg) {
Double xOffset;
if (msg.get("xOffset") instanceof Integer) {
Integer tempXOffset = (Integer) msg.get("xOffset");
xOffset = tempXOffset.doubleValue();
} else {
xOffset = (Double) msg.get("xOffset");
}
if (Double.isNaN(xOffset)) {
log.warn("resizeAndMoveSlide came with xOffset as NaN, setting it to 0");
xOffset = 0.0;
}
Double yOffset;
if (msg.get("yOffset") instanceof Integer) {
Integer tempYOffset = (Integer) msg.get("yOffset");
yOffset = tempYOffset.doubleValue();
} else {
yOffset = (Double) msg.get("yOffset");
}
if (Double.isNaN(yOffset)) {
log.warn("resizeAndMoveSlide came with yOffset as NaN, setting it to 0");
yOffset = 0.0;
}
Double widthRatio;
if (msg.get("widthRatio") instanceof Integer) {
Integer tempWRatio = (Integer) msg.get("widthRatio");
widthRatio = tempWRatio.doubleValue();
} else {
widthRatio = (Double) msg.get("widthRatio");
}
if (Double.isNaN(widthRatio)) {
log.warn("resizeAndMoveSlide came with widthRatio as NaN, setting it to 100");
widthRatio = 100.0;
}
Double heightRatio;
if (msg.get("heightRatio") instanceof Integer) {
Integer tempHRatio = (Integer) msg.get("heightRatio");
heightRatio = tempHRatio.doubleValue();
} else {
heightRatio = (Double) msg.get("heightRatio");
}
if (Double.isNaN(heightRatio)) {
log.warn("resizeAndMoveSlide came with heightRatio as NaN, setting it to 100");
heightRatio = 100.0;
}
IScope scope = Red5.getConnectionLocal().getScope();
presentationApplication.resizeAndMoveSlide(scope.getName(), xOffset, yOffset, widthRatio, heightRatio);
}
use of org.red5.server.api.scope.IScope in project bigbluebutton by bigbluebutton.
the class PresentationService method sharePresentation.
public void sharePresentation(Map<String, Object> msg) {
String presentationID = (String) msg.get("presentationID");
Boolean share = (Boolean) msg.get("share");
IScope scope = Red5.getConnectionLocal().getScope();
presentationApplication.sharePresentation(scope.getName(), presentationID, share);
}
use of org.red5.server.api.scope.IScope in project bigbluebutton by bigbluebutton.
the class ParticipantsService method setParticipantStatus.
public void setParticipantStatus(Map<String, Object> msg) {
IScope scope = Red5.getConnectionLocal().getScope();
String meetingId = scope.getName();
String userId = (String) msg.get("userID");
String status = (String) msg.get("status");
Object value = (Object) msg.get("value");
red5InGW.setUserStatus(meetingId, userId, status, value);
}
use of org.red5.server.api.scope.IScope in project bigbluebutton by bigbluebutton.
the class ParticipantsService method setRecordingStatus.
public void setRecordingStatus(Map<String, Object> msg) {
IScope scope = Red5.getConnectionLocal().getScope();
String meetingId = scope.getName();
String userId = (String) msg.get("userId");
Boolean recording = (Boolean) msg.get("recording");
red5InGW.setRecordingStatus(meetingId, userId, recording);
}
Aggregations