Examples of IClient


Examples of org.red5.server.api.IClient

      // Notify all clients of the same scope (room)
      for (Set<IConnection> conset : current.getScope().getConnections()) {
      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 parentClient = sessionManager.getClientByPublicSID(publicSID, false, null);
      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);
      currentClient.setUser_id(parentClient.getUser_id());
      currentClient.setLastname(parentClient.getLastname());
      currentClient.setFirstname(parentClient.getFirstname());
      currentClient.setPicture_uri(parentClient.getPicture_uri());
      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);

      for (Set<IConnection> conset : current.getScope().getConnections()) {
      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

        for (Set<IConnection> conset : webAppKeyScope.getScope(room_id.toString()).getConnections()) {
        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

      // Notify all Clients of that Scope (Room)
      for (Set<IConnection> conset : current.getScope().getConnections()) {
      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

        // Send to all Clients of the same Scope
        for (Set<IConnection> conset : current.getScope().getConnections()) {
        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("sendVarsToModeratorGeneral", new Object[] { vars },this);
            }
View Full Code Here

Examples of org.red5.server.api.IClient

      // Send to all Clients of that Scope(Room)
      for (Set<IConnection> conset : current.getScope().getConnections()) {
      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

Examples of org.red5.server.api.IClient

      if (scopeHibernate != null) {
        // Notify the clients of the same scope (room) with user_id

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

Examples of org.red5.server.api.IClient

      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

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

      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

      IConnection current = Red5.getConnectionLocal();

      for (Set<IConnection> conset : current.getScope().getConnections()) {
      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
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.