Examples of IClient


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 (!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

        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

Examples of org.red5.server.api.IClient

      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

Examples of org.red5.server.api.IClient

      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

Examples of org.red5.server.api.IClient

      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

Examples of org.red5.server.api.IClient

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

      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

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);

    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)) {
            // 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

      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

      // broadcast to everybody in the room/domain
      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 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
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.