Examples of IClient


Examples of org.red5.server.api.IClient

      interviewStatus.put("action", "stop");

      for (Set<IConnection> conset : concolset) {
      for (IConnection conn : conset) {
        if (conn != null) {
          IClient client = conn.getClient();
          if (SessionVariablesUtil.isScreenClient(client)) {
            // screen sharing clients do not receive events
            continue;
          } else if (SessionVariablesUtil.isAVClient(client)) {
            // AVClients or potential AVClients do not receive events
View Full Code Here

Examples of org.red5.server.api.IClient

    }

  public synchronized void setSipTransport(Long room_id, String publicSID, String broadCastId) {
    log.debug("-----------  setSipTransport");
    IConnection current = Red5.getConnectionLocal();
    IClient c = current.getClient();
    String streamid = c.getId();
    // Notify all clients of the same scope (room)
    Client currentClient = sessionManager.getClientByStreamId(streamid, null);
    currentClient.setSipTransport(true);
    currentClient.setRoom_id(room_id);
    currentClient.setRoomEnter(new Date());
    currentClient.setFirstname("SIP Transport");
    currentClient.setLastname(getSipTransportLastname(room_id));
    currentClient.setBroadCastID(Long.parseLong(broadCastId));
    currentClient.setIsBroadcasting(true);
    currentClient.setPublicSID(publicSID);
    currentClient.setVWidth(120);
    currentClient.setVHeight(90);
    currentClient.setPicture_uri("phone.png");
    sessionManager.updateClientByStreamId(streamid, currentClient, false, null);
    SessionVariablesUtil.initClient(c, false, publicSID);

    for (Set<IConnection> conset : current.getScope().getConnections()) {
    for (IConnection conn : conset) {
      if (conn != null) {
        IClient client = conn.getClient();
        if (SessionVariablesUtil.isScreenClient(client)) {
          // screen sharing clients do not receive events
          continue;
        } else if (SessionVariablesUtil.isAVClient(client)) {
          // AVClients or potential AVClients do not receive events
          continue;
        }

        if (!client.getId().equals(current.getClient().getId())) {
          // It is not needed to send back that event to the actual Moderator
          // as it will be already triggered in the result of this Function in the Client
          if (conn instanceof IServiceCapableConnection) {
            ((IServiceCapableConnection) conn).invoke("addNewUser", new Object[] { currentClient }, this);
            log.debug("sending setSipTransport to " + conn);
View Full Code Here

Examples of org.red5.server.api.IClient

   */
  public synchronized Boolean overwritePublicSID(String newPublicSID) {
    try {
      log.debug("-----------  overwritePublicSID");
      IConnection current = Red5.getConnectionLocal();
      IClient c = current.getClient();
      Client currentClient = sessionManager.getClientByStreamId(c.getId(), null);
      if (currentClient == null) {
        return false;
      }
      SessionVariablesUtil.initClient(c, SessionVariablesUtil.isAVClient(c), newPublicSID);
      currentClient.setPublicSID(newPublicSID);
      sessionManager.updateClientByStreamId(c.getId(), currentClient, false, null);
      return true;
    } catch (Exception err) {
      log.error("[overwritePublicSID]", err);
    }
    return null;
View Full Code Here

Examples of org.red5.server.api.IClient

          .getConnections();
      for (Set<IConnection> conset : conCollection) {
        for (IConnection conn : conset) {
          if (conn != null) {
            if (conn instanceof IServiceCapableConnection) {
              IClient client = conn.getClient();
              if (SessionVariablesUtil.isScreenClient(client)) {
                // screen sharing clients do not receive events
                continue;
              } else if (SessionVariablesUtil.isAVClient(client)) {
                // AVClients or potential AVClients do not receive events
                continue;
              } if (client.getId().equals(
                    current.getClient().getId())) {
                // don't send back to same user
                continue;
              }
              IServiceCapableConnection iStream = (IServiceCapableConnection) conn;
View Full Code Here

Examples of org.red5.server.api.IClient

          .getConnections();
      for (Set<IConnection> conset : conCollection) {
        for (IConnection conn : conset) {
          if (conn != null) {
            if (conn instanceof IServiceCapableConnection) {
              IClient client = conn.getClient();
              if (SessionVariablesUtil.isScreenClient(client)) {
                // screen sharing clients do not receive events
                continue;
              } else if (SessionVariablesUtil.isAVClient(client)) {
                // AVClients or potential AVClients do not receive events
View Full Code Here

Examples of org.red5.server.api.IClient

          .getConnections();
      for (Set<IConnection> conset : conCollection) {
        for (IConnection conn : conset) {
          if (conn != null) {
            if (conn instanceof IServiceCapableConnection) {
              IClient client = conn.getClient();
              if (SessionVariablesUtil.isScreenClient(client)) {
                // screen sharing clients do not receive events
                continue;
              } else if (SessionVariablesUtil.isAVClient(client)) {
                // AVClients or potential AVClients do not receive events
View Full Code Here

Examples of org.red5.server.api.IClient

  public synchronized Client setUserAVSettings(String avsettings,
      Object newMessage, Integer vWidth, Integer vHeight,
      long room_id, String publicSID, Integer interviewPodId) {
    try {
      IConnection current = Red5.getConnectionLocal();
      IClient c = current.getClient();
      String streamid = c.getId();
      log.debug("-----------  setUserAVSettings {} {} {}", new Object[] {streamid, publicSID, avsettings, newMessage});
      Client currentClient = sessionManager.getClientByStreamId(streamid, null);
      currentClient.setAvsettings(avsettings);
      currentClient.setRoom_id(room_id);
      currentClient.setPublicSID(publicSID);
      currentClient.setVWidth(vWidth);
      currentClient.setVHeight(vHeight);
      currentClient.setInterviewPodId(interviewPodId);
      sessionManager.updateAVClientByStreamId(streamid, currentClient, null);
      SessionVariablesUtil.initClient(c, false, publicSID);

      HashMap<String, Object> hsm = new HashMap<String, Object>();
      hsm.put("client", currentClient);
      hsm.put("message", newMessage);

      Collection<Set<IConnection>> conCollection = current.getScope().getConnections();
      for (Set<IConnection> conset : conCollection) {
        for (IConnection conn : conset) {
          if (conn != null) {
            if (conn instanceof IServiceCapableConnection) {
              IClient client = conn.getClient();
              if (SessionVariablesUtil.isScreenClient(client)) {
                // screen sharing clients do not receive events
                continue;
              } else if (SessionVariablesUtil.isAVClient(client)) {
                // AVClients or potential AVClients do not receive events
View Full Code Here

Examples of org.red5.server.api.IClient

            .getScope(room_id.toString()).getConnections();
        for (Set<IConnection> conset : conCollection) {
          for (IConnection conn : conset) {
            if (conn != null) {
              if (conn instanceof IServiceCapableConnection) {
                IClient client = conn.getClient();
                if (SessionVariablesUtil.isScreenClient(client)) {
                  // screen sharing clients do not receive events
                  continue;
                } else if (SessionVariablesUtil.isAVClient(client)) {
                  // AVClients or potential AVClients do not receive events
View Full Code Here

Examples of org.red5.server.api.IClient

          .getConnections();
      for (Set<IConnection> conset : conCollection) {
        for (IConnection conn : conset) {
          if (conn != null) {
            if (conn instanceof IServiceCapableConnection) {
              IClient client = conn.getClient();
              if (SessionVariablesUtil.isScreenClient(client)) {
                // screen sharing clients do not receive events
                continue;
              } else if (SessionVariablesUtil.isAVClient(client)) {
                // AVClients or potential AVClients do not receive events
                continue;
              } if (client.getId().equals(
                  current.getClient().getId())) {
                // don't send back to same user
                continue;
              }
              ((IServiceCapableConnection) conn).invoke(
View Full Code Here

Examples of org.red5.server.api.IClient

            .getConnections();
        for (Set<IConnection> conset : conCollection) {
          for (IConnection conn : conset) {
            if (conn != null) {
              if (conn instanceof IServiceCapableConnection) {
                IClient client = conn.getClient();
                if (SessionVariablesUtil.isScreenClient(client)) {
                  // screen sharing clients do not receive events
                  continue;
                } else if (SessionVariablesUtil.isAVClient(client)) {
                  // AVClients or potential AVClients do not receive events
                  continue;
                } if (client.getId().equals(
                    current.getClient().getId())) {
                  // don't send back to same user
                  continue;
                }
                ((IServiceCapableConnection) conn)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.