Package org.red5.server.api

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


  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

            .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

          .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

            .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

          .getConnections();
      for (Set<IConnection> conset : conCollection) {
        for (IConnection conn : conset) {
          if (conn != null) {
            if (conn instanceof IServiceCapableConnection) {
              IClient client = conn.getClient();
              if (!sendScreen && 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;
              } else if (!sendSelf && client.getId().equals(
                  current.getClient().getId())) {
                //Do not send back to self
                continue;
              }
              ((IServiceCapableConnection) conn).invoke(
View Full Code Here

        Collection<Set<IConnection>> conCollection = webAppKeyScope
            .getScope(scopeName).getConnections();
        for (Set<IConnection> conset : conCollection) {
          for (IConnection conn : conset) {
            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

      for (Set<IConnection> conset : conCollection) {
        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

      for (Set<IConnection> conset : conCollection) {
        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

      Collection<Set<IConnection>> conCollection = current.getScope()
          .getConnections();
      for (Set<IConnection> conset : conCollection) {
        for (IConnection conn : conset) {
          if (conn != null) {
            IClient client = conn.getClient();
            if (SessionVariablesUtil.isScreenClient(client)) {
              if (conn.getClient().getId().equals(streamid)) {
                ((IServiceCapableConnection) conn).invoke(
                    "sendRemoteCursorEvent",
                    new Object[] { messageObj }, this);
View Full Code Here

TOP

Related Classes of org.red5.server.api.IClient

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.