Package org.red5.server.api

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


      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

      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

      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

      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

      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

    }

  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

   */
  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

          .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

          .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

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.