Package com.kurento.demo.webrtc

Examples of com.kurento.demo.webrtc.DispatcherParticipant


    } else {
      WebRtcEndpoint endpoint = mp.newWebRtcEndpoint().build();
      HubPort hubPort = compsite.newHubPort().build();
      endpoint.connect(hubPort);
      hubPort.connect(endpoint);
      DispatcherParticipant participant = new DispatcherParticipant(
          session.getSessionId(), name, endpoint, session, hubPort);
      session.start(participant.endpoint);
      session.setAttribute("participant", participant);
      participants.put(participant.getId(), participant);
      notifyJoined(participant);
      hubPort.connect(endpoint);
    }
  }
View Full Code Here


  }

  @Override
  public synchronized void onSessionTerminated(WebRtcContentSession session,
      int code, String reason) throws Exception {
    DispatcherParticipant participant = (DispatcherParticipant) session
        .getAttribute("participant");
    participants.remove(participant.getId());

    getLogger().info("---> remove port");
    getLogger().info("---> number participants {}", participants.size());
    getLogger().info("---> participant name {}", participant.getId());
    try {
      participant.port.release();
      participant.endpoint.release();
    } catch (Throwable e) {
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.kurento.demo.webrtc.DispatcherParticipant

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.