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 Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddConnection
(Client client) Add another streaming session (for e.g.void
closeConection
(Client client) Close additional (screen share) session.void
disconnect
(Client client, String sessionName) Disconnect a client from a sessionvoid
Disconnect a client from an existing session, and create a new session for a world
-
Field Details
-
mainConnectionId
- See Also:
-
additionalConnectionId
- See Also:
-
-
Constructor Details
-
StreamManager
public StreamManager()
-
-
Method Details
-
disconnect
public void disconnect(Client client, String sessionName) throws io.openvidu.java.client.OpenViduException Disconnect a client from a session- Parameters:
client
- whom to disconnectsessionName
- name of the session/world to disconnect from- Throws:
io.openvidu.java.client.OpenViduException
-
join
Disconnect a client from an existing session, and create a new session for a world- Parameters:
client
-world
-
-
addConnection
Add 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
-
closeConection
Close 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
-
-