@Service(value="web.handler")
public class ScopeApplicationAdapter
extends org.red5.server.adapter.MultiThreadedApplicationAdapter
implements org.red5.server.api.service.IPendingServiceCallback
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
ScopeApplicationAdapter.MessageSender |
| コンストラクタと説明 |
|---|
ScopeApplicationAdapter() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
appConnect(org.red5.server.api.IConnection conn,
Object[] params) |
boolean |
appStart(org.red5.server.api.scope.IScope scope) |
org.apache.openmeetings.db.dto.room.CheckDto |
check() |
void |
dropSharing(org.apache.openmeetings.db.entity.basic.IClient c,
Long roomId) |
List<Long> |
getActiveRoomIds() |
static org.apache.openmeetings.IApplication |
getApp() |
Integer |
getSipConferenceMembersNumber(Long roomId)
Returns number of SIP conference participants
|
String |
getSipNumber(Double roomId) |
List<String> |
listRoomBroadcast() |
void |
micActivity(boolean active) |
void |
resultReceived(org.red5.server.api.service.IPendingServiceCall arg0) |
boolean |
roomConnect(org.red5.server.api.IConnection conn,
Object[] params) |
void |
roomLeave(org.red5.server.api.IClient client,
org.red5.server.api.scope.IScope room)
Logic must be before roomDisconnect cause otherwise you cannot throw a
message to each one
|
void |
roomLeaveByScope(org.apache.openmeetings.db.entity.basic.IClient c,
Long roomId) |
void |
roomLeaveByScope(org.apache.openmeetings.db.entity.room.StreamClient client,
org.red5.server.api.scope.IScope scope)
Removes the Client from the List, stops recording, adds the Room-Leave
event to running recordings, clear Polls and removes Client from any list
This function is kind of private/protected as the client won't be able
to call it with proper values.
|
Map<String,String> |
screenSharerAction(Map<String,Object> map) |
int |
sendMessage(Object newMessage) |
int |
sendMessageAll(Object newMessage) |
int |
sendMessageById(Object newMessage,
String uid,
org.red5.server.api.scope.IScope scope)
Function is used to send the kick Trigger at the moment,
it sends a general message to a specific clientId
|
int |
sendMessageToClient(String uid,
Object newMessage)
Sends a message to a user in the same room by its clientId
|
void |
sendMessageToCurrentScope(String remoteMethodName,
Object newMessage,
boolean sendSelf)
General sync mechanism for all messages that are send from within the
scope of the current client, but:
optionally do not send to self (see param: sendSelf)
do not send to clients that are screen sharing clients
do not send to clients that are audio/video clients (or potentially ones)
do not send to connections where no RoomClient is registered
|
void |
sendMessageToCurrentScope(String method,
Object msg,
boolean sendSelf,
boolean sendScreen)
General sync mechanism for all messages that are send from within the
scope of the current client, but:
optionally do not send to self (see param: sendSelf)
send to clients that are screen sharing clients based on parameter
do not send to clients that are audio/video clients (or potentially ones)
do not send to connections where no RoomClient is registered
|
void |
sendMessageToCurrentScope(String scopeName,
String remoteMethodName,
Object newMessage,
boolean sendSelf) |
void |
sendMessageToCurrentScope(String scopeName,
String remoteMethodName,
Object newMessage,
boolean sendSelf,
boolean sendScreen) |
void |
sendMessageToMembers(List<?> newMessage)
wrapper method
|
int |
sendMessageWithClient(Object newMessage)
wrapper method
|
int |
sendMessageWithClientWithSyncObject(Object newMessage,
boolean sync)
wrapper method
|
boolean |
sendRemoteCursorEvent(String uid,
Map<String,Object> messageObj) |
void |
sendToScope(Long roomId,
String method,
Object obj) |
Map<String,Object> |
setConnectionAsSharingClient(Map<String,Object> map) |
void |
setNewCursorPosition(Double x,
Double y) |
void |
startInterviewRecording(org.apache.openmeetings.db.entity.basic.Client c)
Starts recording in interview room
|
void |
stopInterviewRecording(org.apache.openmeetings.db.entity.basic.IClient c)
Stop the recording of the streams and send event to connected users of scope
|
void |
streamBroadcastClose(org.red5.server.api.stream.IBroadcastStream stream)
This method handles the Event after a stream has been removed all
connected Clients in the same room will get a notification
|
void |
streamPublishStart(org.red5.server.api.stream.IBroadcastStream stream)
This method handles the Event after a stream has been added all connected
Clients in the same room will get a notification
|
long |
switchMicMuted(String publicSID,
boolean mute) |
int |
updateSipTransport() |
addListener, addScheduledJob, addScheduledJobAfterDelay, addScheduledOnceJob, addScheduledOnceJob, appDisconnect, appJoin, appLeave, appStop, clearSharedObjects, connect, connect, createSharedObject, disconnect, FCPublish, FCSubscribe, FCUnpublish, FCUnpublish, getBroadcastStream, getBroadcastStreamNames, getClientTTL, getGhostConnsCleanupPeriod, getListeners, getOnDemandStream, getScheduledJobNames, getSharedObject, getSharedObject, getSharedObjectNames, getSharedObjectSecurity, getStreamLength, getStreamPlaybackSecurity, getStreamPublishSecurity, getSubscriberStream, handleEvent, hasBroadcastStream, hasOnDemandStream, hasSharedObject, join, leave, measureBandwidth, measureBandwidth, pauseScheduledJob, registerSharedObjectSecurity, registerStreamPlaybackSecurity, registerStreamPublishSecurity, rejectClient, rejectClient, removeListener, removeScheduledJob, resumeScheduledJob, roomDisconnect, roomJoin, roomStart, roomStop, setClientTTL, setGhostConnsCleanupPeriod, start, startTransmit, stop, stopTransmit, stopTransmit, streamBroadcastStart, streamPlayItemPause, streamPlayItemPlay, streamPlayItemResume, streamPlayItemSeek, streamPlayItemStop, streamRecordStart, streamRecordStop, streamSubscriberClose, streamSubscriberStart, unregisterSharedObjectSecurity, unregisterStreamPlaybackSecurity, unregisterStreamPublishSecuritycreateChildScope, getAttribute, getAttribute, getAttributeNames, getAttributes, getChildScope, getChildScopeNames, getClients, getConnections, getContext, getDepth, getName, getParent, getPath, getPlugins, getResource, getResources, getScope, hasAttribute, hasChildScope, hasParent, lookupConnections, removeAttribute, removeAttributes, setAttribute, setAttributes, setAttributes, setPlugins, setScope, sizeaddChildScope, checkBandwidth, checkBandwidthUp, removeChildScope, serviceCall, setCanCallService, setCanConnect, setCanStart, setJoinpublic static org.apache.openmeetings.IApplication getApp()
public void resultReceived(org.red5.server.api.service.IPendingServiceCall arg0)
resultReceived インタフェース内 org.red5.server.api.service.IPendingServiceCallbackpublic boolean appStart(org.red5.server.api.scope.IScope scope)
appStart インタフェース内 org.red5.server.jmx.mxbeans.ApplicationMXBeanappStart クラス内 org.red5.server.adapter.MultiThreadedApplicationAdapterpublic boolean appConnect(org.red5.server.api.IConnection conn,
Object[] params)
appConnect インタフェース内 org.red5.server.jmx.mxbeans.ApplicationMXBeanappConnect クラス内 org.red5.server.adapter.MultiThreadedApplicationAdapterpublic boolean roomConnect(org.red5.server.api.IConnection conn,
Object[] params)
roomConnect インタフェース内 org.red5.server.jmx.mxbeans.ApplicationMXBeanroomConnect クラス内 org.red5.server.adapter.MultiThreadedApplicationAdapterpublic Map<String,Object> setConnectionAsSharingClient(Map<String,Object> map)
map - public void roomLeave(org.red5.server.api.IClient client,
org.red5.server.api.scope.IScope room)
roomLeave インタフェース内 org.red5.server.jmx.mxbeans.ApplicationMXBeanroomLeave クラス内 org.red5.server.adapter.MultiThreadedApplicationAdapterpublic void dropSharing(org.apache.openmeetings.db.entity.basic.IClient c,
Long roomId)
public void roomLeaveByScope(org.apache.openmeetings.db.entity.basic.IClient c,
Long roomId)
public void roomLeaveByScope(org.apache.openmeetings.db.entity.room.StreamClient client,
org.red5.server.api.scope.IScope scope)
client - scope - public void streamPublishStart(org.red5.server.api.stream.IBroadcastStream stream)
streamPublishStart インタフェース内 org.red5.server.api.stream.IStreamAwareScopeHandlerstreamPublishStart クラス内 org.red5.server.adapter.MultiThreadedApplicationAdapterpublic void streamBroadcastClose(org.red5.server.api.stream.IBroadcastStream stream)
streamBroadcastClose インタフェース内 org.red5.server.api.stream.IStreamAwareScopeHandlerstreamBroadcastClose クラス内 org.red5.server.adapter.MultiThreadedApplicationAdapterpublic long switchMicMuted(String publicSID, boolean mute)
public int sendMessage(Object newMessage)
public int sendMessageAll(Object newMessage)
public void sendMessageToMembers(List<?> newMessage)
newMessage - public void sendMessageToCurrentScope(String remoteMethodName, Object newMessage, boolean sendSelf)
remoteMethodName - The method to be callednewMessage - parameterssendSelf - send to the current client as wellpublic void sendMessageToCurrentScope(String scopeName, String remoteMethodName, Object newMessage, boolean sendSelf)
public void sendMessageToCurrentScope(String method, Object msg, boolean sendSelf, boolean sendScreen)
method - The method to be calledmsg - parameterssendSelf - send to the current client as wellsendScreen - send to the current client as wellpublic void sendMessageToCurrentScope(String scopeName, String remoteMethodName, Object newMessage, boolean sendSelf, boolean sendScreen)
public int sendMessageWithClient(Object newMessage)
newMessage - public int sendMessageWithClientWithSyncObject(Object newMessage, boolean sync)
newMessage - sync - public int sendMessageById(Object newMessage, String uid, org.red5.server.api.scope.IScope scope)
newMessage - uid - scope - public int sendMessageToClient(String uid, Object newMessage)
uid - newMessage - public boolean sendRemoteCursorEvent(String uid, Map<String,Object> messageObj)
public void startInterviewRecording(org.apache.openmeetings.db.entity.basic.Client c)
public void stopInterviewRecording(org.apache.openmeetings.db.entity.basic.IClient c)
public void micActivity(boolean active)
public Integer getSipConferenceMembersNumber(Long roomId)
roomId - id of roompublic int updateSipTransport()
public org.apache.openmeetings.db.dto.room.CheckDto check()
Copyright © 2012–2017 Apache Software Foundation. All rights reserved.