Package org.vrspace.server.core
Class StreamManager
java.lang.Object
org.vrspace.server.core.StreamManager
Manages streaming sessions to OpenVidu server.
- Author:
- joe
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddConnection(Client client) Add another streaming session (for e.g.voidcloseConection(Client client) Close additional (screen share) session.voiddisconnect(Client client, String sessionName) Disconnect a client from a sessionbooleanvoidDisconnect a client from an existing session, and create a new session for a world
- 
Field Details- 
mainConnectionId- See Also:
 
- 
additionalConnectionId- See Also:
 
 
- 
- 
Constructor Details- 
StreamManagerpublic StreamManager()
 
- 
- 
Method Details- 
disconnectpublic void disconnect(Client client, String sessionName) throws io.openvidu.java.client.OpenViduException Disconnect a client from a session- Parameters:
- client- whom to disconnect
- sessionName- name of the session/world to disconnect from
- Throws:
- io.openvidu.java.client.OpenViduException
 
- 
joinDisconnect a client from an existing session, and create a new session for a world- Parameters:
- client-
- world-
 
- 
addConnectionAdd another streaming session (for e.g. screen share). Only one additional session supported so far.- Parameters:
- client-
- Returns:
- null if an error occurred, or streaming is not configured, session token otherwise
 
- 
closeConectionClose additional (screen share) session. CHECKME: session is closed automatically when streaming stops, or when disconnect() is called. This may not be needed at all.- Parameters:
- client-
 
- 
isAvailablepublic boolean isAvailable()
 
-