Search in sources :

Example 6 with IScope

use of org.red5.server.api.scope.IScope in project bigbluebutton by bigbluebutton.

the class ParticipantsService method assignPresenter.

public void assignPresenter(Map<String, String> msg) {
    IScope scope = Red5.getConnectionLocal().getScope();
    String meetingId = scope.getName();
    String newPresenterID = (String) msg.get("newPresenterID");
    String newPresenterName = (String) msg.get("newPresenterName");
    String assignedBy = (String) msg.get("assignedBy");
    red5InGW.assignPresenter(meetingId, newPresenterID, newPresenterName, assignedBy);
}
Also used : IScope(org.red5.server.api.scope.IScope)

Example 7 with IScope

use of org.red5.server.api.scope.IScope in project bigbluebutton by bigbluebutton.

the class ParticipantsService method unshareWebcam.

public void unshareWebcam(String stream) {
    IScope scope = Red5.getConnectionLocal().getScope();
    String meetingId = scope.getName();
    String userId = getBbbSession().getInternalUserID();
    Map<String, Object> logData = new HashMap<String, Object>();
    logData.put("meetingId", scope.getName());
    logData.put("userId", userId);
    logData.put("stream", stream);
    Gson gson = new Gson();
    String logStr = gson.toJson(logData);
    log.warn("User unshared webcam. data={}", logStr);
    red5InGW.unshareWebcam(meetingId, userId, stream);
}
Also used : HashMap(java.util.HashMap) IScope(org.red5.server.api.scope.IScope) Gson(com.google.gson.Gson)

Example 8 with IScope

use of org.red5.server.api.scope.IScope in project bigbluebutton by bigbluebutton.

the class ParticipantsService method getRecordingStatus.

public void getRecordingStatus() {
    IScope scope = Red5.getConnectionLocal().getScope();
    String meetingId = scope.getName();
    red5InGW.getRecordingStatus(meetingId, getMyUserId());
}
Also used : IScope(org.red5.server.api.scope.IScope)

Example 9 with IScope

use of org.red5.server.api.scope.IScope in project bigbluebutton by bigbluebutton.

the class PresentationService method getPresentationInfo.

public void getPresentationInfo() {
    IScope scope = Red5.getConnectionLocal().getScope();
    log.debug("Getting presentation info for meeting [{}]", scope.getName());
    presentationApplication.getPresentationInfo(scope.getName(), getBbbSession().getInternalUserID());
}
Also used : IScope(org.red5.server.api.scope.IScope)

Example 10 with IScope

use of org.red5.server.api.scope.IScope in project bigbluebutton by bigbluebutton.

the class PresentationService method gotoSlide.

public void gotoSlide(Map<String, Object> msg) {
    String pageId = (String) msg.get("page");
    IScope scope = Red5.getConnectionLocal().getScope();
    log.debug("Got GotoSlide for meeting [{}] page=[{}]", scope.getName(), pageId);
    presentationApplication.gotoSlide(scope.getName(), pageId);
}
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