Examples of IServiceCapableConnection


Examples of org.red5.server.api.service.IServiceCapableConnection

  }

  public void sendplayerfunction(String fn, String params) {
    if (player instanceof IServiceCapableConnection) {
      IServiceCapableConnection sc = (IServiceCapableConnection) player;
      sc.invoke("playerfunction", new Object[] { fn, params });
    }
    if(commandServer!=null) {
      commandServer.sendToGroup(TelnetServer.MSGPLAYERTAG + " javascript function: " + fn + " "+ params);
    }
  }
View Full Code Here

Examples of org.red5.server.api.service.IServiceCapableConnection

  /** */
  public void messageGrabber(String str, String status) {
    Util.debug("TO grabber flash: "+str+", "+status, this)

    if (grabber instanceof IServiceCapableConnection) {
      IServiceCapableConnection sc = (IServiceCapableConnection) grabber;
      sc.invoke("message", new Object[] { str, status });
    }
   
    if(commandServer!=null) {
      if(str!=null){
//        if(! str.equals("status check received"))
View Full Code Here

Examples of org.red5.server.api.service.IServiceCapableConnection

      Collection<Set<IConnection>> concollection = getConnections();
      for (Set<IConnection> cc : concollection) {
        for (IConnection con : cc) {
          if (con instanceof IServiceCapableConnection
              && con != grabber && con != player) {
            IServiceCapableConnection sc = (IServiceCapableConnection) con;
            sc.invoke("message", new Object[] {
                "streaming " + stream, "green", "stream", stream });
          }
        }
      }
    }
View Full Code Here

Examples of org.red5.server.api.service.IServiceCapableConnection

    }
  }

  private void playerBroadCast(String str) {
    if (player instanceof IServiceCapableConnection) {
      IServiceCapableConnection sc = (IServiceCapableConnection) player;
      if (!str.equals("off")) {
        String vals[] = (settings.readSetting("vself")).split("_");
        int width = Integer.parseInt(vals[0]);
        int height = Integer.parseInt(vals[1]);
        int fps = Integer.parseInt(vals[2]);
        int quality = Integer.parseInt(vals[3]);
        boolean pushtotalk = settings.getBoolean(GUISettings.pushtotalk);
        sc.invoke("publish", new Object[] { str, width, height, fps,
            quality, pushtotalk });
        // sc.invoke("publish", new Object[] { str, 160, 120, 8, 85 });
        new Thread(new Runnable() {
          public void run() {
            try {
              Thread.sleep(STREAM_CONNECT_DELAY);
            } catch (Exception e) {
              e.printStackTrace();
            }
            grabberPlayPlayer(1);
            state.set(State.values.driverstream, true);
          }
        }).start();
        if (str.equals("camera") || str.equals("camandmic")) {
          monitor("on");
          Util.debug("monitor on", this);
        }
        Util.log("OCULUS: player broadcast start", this);
      } else {
        sc.invoke("publish", new Object[] { "stop", null, null, null,null,null });
        grabberPlayPlayer(0);
        state.set(State.values.driverstream, false);
        Util.log("OCULUS: player broadcast stop",this);
      }
    }
View Full Code Here

Examples of org.red5.server.api.service.IServiceCapableConnection

    }
  }

  private void grabberPlayPlayer(int nostreams) {
    if (grabber instanceof IServiceCapableConnection) {
      IServiceCapableConnection sc = (IServiceCapableConnection) grabber;
      sc.invoke("play", new Object[] { nostreams });
      // messageGrabber("playerbroadcast",Integer.toString(nostreams));
    }
  }
View Full Code Here

Examples of org.red5.server.api.service.IServiceCapableConnection

    Collection<Set<IConnection>> concollection = getConnections();
    for (Set<IConnection> cc : concollection) {
      for (IConnection con : cc) {
        if (con instanceof IServiceCapableConnection && con != grabber
            && !(con == pendingplayer && !pendingplayerisnull)) {
          IServiceCapableConnection n = (IServiceCapableConnection) con;
          n.invoke("message", new Object[] { str, "yellow", null, null });
        }
      }
    }
    Util.log("chat: " + str);
    messageGrabber("<CHAT>" + str, null);
View Full Code Here

Examples of org.red5.server.api.service.IServiceCapableConnection

    else {
      state.delete(State.values.streamActivityThresholdEnabled);
      state.delete(State.values.streamActivityThreshold);
    }

    IServiceCapableConnection sc = (IServiceCapableConnection) grabber;
    sc.invoke("setActivityThreshold", new Object[] { videoThreshold, audioThreshold });
    messageplayer("stream activity set to: "+str, null, null);

  }
View Full Code Here

Examples of org.red5.server.api.service.IServiceCapableConnection

       return;
     }

    if (grabber instanceof IServiceCapableConnection) {
      state.set(State.values.framegrabbusy.name(), true);
      IServiceCapableConnection sc = (IServiceCapableConnection) grabber;
      sc.invoke("framegrabMedium", new Object[] {});
      app.message("getlightlevel command received", null, null);
    }
   
    new Thread(new Runnable() {
      public void run() {
View Full Code Here

Examples of org.red5.server.api.service.IServiceCapableConnection

    return;
    }

    if (grabber instanceof IServiceCapableConnection) {
      state.set(State.values.framegrabbusy.name(), true);
      IServiceCapableConnection sc = (IServiceCapableConnection) grabber;
      sc.invoke("framegrabMedium", new Object[] {});
    }
   
    new Thread(new Runnable() {
      public void run() {
        try {
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.