Search in sources :

Example 11 with IScope

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());
}
Also used : IScope(org.red5.server.api.scope.IScope)

Example 12 with IScope

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);
}
Also used : IScope(org.red5.server.api.scope.IScope)

Example 13 with IScope

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);
}
Also used : IScope(org.red5.server.api.scope.IScope)

Example 14 with IScope

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);
}
Also used : IScope(org.red5.server.api.scope.IScope)

Example 15 with IScope

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);
}
Also used : IScope(org.red5.server.api.scope.IScope)

Aggregations

IScope (org.red5.server.api.scope.IScope)27 IConnection (org.red5.server.api.IConnection)9 ISharedObject (org.red5.server.api.so.ISharedObject)5 ArrayList (java.util.ArrayList)4 Gson (com.google.gson.Gson)3 ExecutionException (java.util.concurrent.ExecutionException)2 TimeoutException (java.util.concurrent.TimeoutException)2 HashMap (java.util.HashMap)1 IoBuffer (org.apache.mina.core.buffer.IoBuffer)1 AudioStream (org.red5.app.sip.AudioStream)1 IContext (org.red5.server.api.IContext)1 IServiceCapableConnection (org.red5.server.api.service.IServiceCapableConnection)1 IBroadcastStream (org.red5.server.api.stream.IBroadcastStream)1 IStreamListener (org.red5.server.api.stream.IStreamListener)1 IStreamPacket (org.red5.server.api.stream.IStreamPacket)1 AudioData (org.red5.server.net.rtmp.event.AudioData)1 IProviderService (org.red5.server.stream.IProviderService)1