Class StreamManager

java.lang.Object
org.vrspace.server.core.StreamManager

@Component public class StreamManager extends Object
Manages streaming sessions to OpenVidu server.
Author:
joe
  • Field Details

  • 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 disconnect
      sessionName - name of the session/world to disconnect from
      Throws:
      io.openvidu.java.client.OpenViduException
    • join

      public void join(Client client)
      Disconnect a client from an existing session, and create a new session for a world
      Parameters:
      client -
      world -
    • addConnection

      public String addConnection(Client client)
      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

      public void closeConection(Client client)
      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 -