Package org.red5.server.api.service

Examples of org.red5.server.api.service.IServiceCapableConnection.invoke()


                if (rcl.getIsScreenClient() != null && rcl.getIsScreenClient()) {
                  // continue;
                } else {
                  log.debug("is this users still alive? :" + rcl);
                  IServiceCapableConnection iStream = (IServiceCapableConnection) conn;
                  iStream.invoke(clientFunction, new Object[] { rc }, this);
                }

                log.debug("sending notification to " + conn + " ID: ");

                // if this close stream event then stop the
View Full Code Here


    log.info("callclient called");
    IConnection conn = Red5.getConnectionLocal();
    if (conn instanceof IServiceCapableConnection) {
        IServiceCapableConnection sc = (IServiceCapableConnection) conn;
        log.info("flashmethod called");
        sc.invoke("flashmethod", new Object[]{"One", 1});
    }
  }
  public boolean appConnect( IConnection conn , Object[] params )
  { 
    //String id=conn.getClient().getId();
View Full Code Here

          //log.debug("Recipient has {} connections", rcons.size());
          Object[] sendobj = new Object[] { client.getId(), "This is a message from " + name };
          for (IConnection rcon : rcons) {
            if (rcon instanceof IServiceCapableConnection) {
              serviceCapCon = (IServiceCapableConnection) rcon;
              serviceCapCon.invoke("privMessage", sendobj);
              break;
            } else {
              log.info("Connection is not service capable");
            }
          }
View Full Code Here

          //log.debug("Recipient has {} connections", rcons.size());
          Object[] sendobj = new Object[] { client.getId(), "This is a message from " + name };
          for (IConnection rcon : rcons) {
            if (rcon instanceof IServiceCapableConnection) {
              serviceCapCon = (IServiceCapableConnection) rcon;
              serviceCapCon.invoke("privMessage", sendobj);
              break;
            } else {
              log.info("Connection is not service capable");
            }
          }
View Full Code Here

      log.debug("### Client connected to OpenMeetings, register Client StreamId: "
          + streamId + " scope " + conn.getScope().getName()+ " isAVClient "+isAVClient);
      log.debug("params "+params);

      // Set StreamId in Client
      service.invoke("setId", new Object[] { streamId }, this);

      String swfURL = "";
      if (conn.getConnectParams().get("swfUrl") != null) {
        swfURL = conn.getConnectParams().get("swfUrl").toString();
      }
View Full Code Here

              }
             
              log.debug("RCL SEND is equal newStream SEND "+rcl.getPublicSID()+" || "+rcl.getUserport());
               
              IServiceCapableConnection iStream = (IServiceCapableConnection) conn;
              iStream.invoke("newStream",
                  new Object[] { clientObjectSendToSync },
                  this);

            }
          }
View Full Code Here

                        + rcl);
                    // conn.ping();
                    IServiceCapableConnection iStream = (IServiceCapableConnection) conn;
                    // log.info("IServiceCapableConnection ID "
                    // + iStream.getClient().getId());
                    iStream.invoke(clientFunction,
                        new Object[] { rc }, this);
                  }

                  log.debug("sending notification to " + conn
                      + " ID: ");
View Full Code Here

                  // Check if the Client is in the same room
                  // and same domain
                  IServiceCapableConnection iStream = (IServiceCapableConnection) conn;
                  // log.info("IServiceCapableConnection ID "
                  // + iStream.getClient().getId());
                  iStream.invoke("newRed5ScreenCursor",
                      new Object[] { cursor }, this);
                  // log.debug("send Notification to");
                }
              }
            }
View Full Code Here

              return;
            }
           
            state.set(State.values.framegrabbusy.name(), true);
            IServiceCapableConnection sc = (IServiceCapableConnection) grabber;
            sc.invoke("framegrabMedium", new Object[] {});
           
            while (state.getBoolean(State.values.framegrabbusy)) {
              int n = 0;
              Thread.sleep(5);
              n++;
View Full Code Here

          authtoken =  null;
        }
        str += " someonealreadydriving " + state.get(State.values.driver.name());

        // this has to be last to above variables are already set in java script
        sc.invoke("message", new Object[] { null, "green", "multiple", str });
        str = state.get(State.values.pendinguserconnected) + " pending connection from: "
            + pendingplayer.getRemoteAddress();
       
        Util.log("playersignin(): " + str);
        messageGrabber(str, 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.