-
Notifications
You must be signed in to change notification settings - Fork 5.9k
/
ParticipantsApplication.java
101 lines (82 loc) · 3.66 KB
/
ParticipantsApplication.java
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/**
* BigBlueButton open source conferencing system - http://www.bigbluebutton.org/
*
* Copyright (c) 2014 BigBlueButton Inc. and by respective authors (see below).
*
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
* Foundation; either version 3.0 of the License, or (at your option) any later
* version.
*
* BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along
* with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
*
*/
package org.bigbluebutton.conference.service.participants;
import org.slf4j.Logger;
import org.red5.logging.Red5LoggerFactory;
import org.bigbluebutton.core.api.IBigBlueButtonInGW;
public class ParticipantsApplication {
private static Logger log = Red5LoggerFactory.getLogger( ParticipantsApplication.class, "bigbluebutton" );
private IBigBlueButtonInGW bbbInGW;
public void userRaiseHand(String meetingId, String userId) {
bbbInGW.userRaiseHand(meetingId, userId);
}
public void lowerHand(String meetingId, String userId, String loweredBy) {
bbbInGW.lowerHand(meetingId, userId, loweredBy);
}
public void ejectUserFromMeeting(String meetingId, String userId, String ejectedBy) {
bbbInGW.ejectUserFromMeeting(meetingId, userId, ejectedBy);
}
public void shareWebcam(String meetingId, String userId, String stream) {
bbbInGW.shareWebcam(meetingId, userId, stream);
}
public void unshareWebcam(String meetingId, String userId) {
bbbInGW.unshareWebcam(meetingId, userId);
}
public void setParticipantStatus(String room, String userid, String status, Object value) {
bbbInGW.setUserStatus(room, userid, status, value);
}
public boolean participantJoin(String roomName, String userid) { //is this used?!
log.debug("Participant " + userid + " joining room " + roomName);
bbbInGW.userJoin(roomName, userid);
return true;
}
public boolean participantLeft(String roomName, String userid) { //is this used?!
log.debug("Participant " + userid + " leaving room " + roomName);
bbbInGW.userLeft(roomName, userid);
return true;
}
public boolean registerUser(String roomName, String userid, String username, String role, String externUserID, Boolean guest) {
bbbInGW.registerUser(roomName, userid, username, role, externUserID, userid, guest);
return true;
}
public void assignPresenter(String room, String newPresenterID, String newPresenterName, String assignedBy){
bbbInGW.assignPresenter(room, newPresenterID, newPresenterName, assignedBy);
}
public void getUsers(String meetingID, String requesterID) {
bbbInGW.getUsers(meetingID, requesterID);
}
public void setBigBlueButtonInGW(IBigBlueButtonInGW inGW) {
bbbInGW = inGW;
}
public void setRecordingStatus(String meetingId, String userId, Boolean recording) {
bbbInGW.setRecordingStatus(meetingId, userId, recording);
}
public void getRecordingStatus(String meetingId, String userId) {
bbbInGW.getRecordingStatus(meetingId, userId);
}
public void getGuestPolicy(String meetingId, String requesterId) {
bbbInGW.getGuestPolicy(meetingId, requesterId);
}
public void newGuestPolicy(String meetingId, String guestPolicy, String setBy) {
bbbInGW.setGuestPolicy(meetingId, guestPolicy, setBy);
}
public void responseToGuest(String meetingId, String userId, Boolean response, String requesterId) {
bbbInGW.responseToGuest(meetingId, userId, response, requesterId);
}
}