Package org.red5.server.messaging

Examples of org.red5.server.messaging.ServiceAdapter.invoke()


        str = state.get(State.values.pendinguserconnected) + " pending connection from: "
            + pendingplayer.getRemoteAddress();
       
        Util.log("playersignin(): " + str);
        messageGrabber(str, null);
        sc.invoke("videoSoundMode", new Object[] { videosoundmode });
      }
    } else {
      player = Red5.getConnectionLocal();
      state.set(State.values.driver.name(), state.get(State.values.pendinguserconnected));
      state.delete(State.values.pendinguserconnected);
View Full Code Here


      if (settings.getBoolean(GUISettings.loginnotify)) {
        saySpeech("lawg inn " + state.get(State.values.driver));
      }
     
      IServiceCapableConnection sc = (IServiceCapableConnection) player;
      sc.invoke("videoSoundMode", new Object[] { videosoundmode });
      Util.log("player video sound mode = "+videosoundmode, this);
    }
  }

View Full Code Here

            for (IConnection con : cc) {
              if (con instanceof IServiceCapableConnection
                  && con != grabber
                  && !(con == pendingplayer && !pendingplayerisnull)) {
                IServiceCapableConnection n = (IServiceCapableConnection) con;
                n.invoke("message", new Object[] {
                    "streaming " + stream, "green",
                    "stream", stream });
                Util.debug("message all players: streaming " + stream +" stream " +stream,this);
              }
            }
View Full Code Here

      messageplayer("stream control unavailable, server may be in setup mode", null, null);
      return;
    }
   
    IServiceCapableConnection sc = (IServiceCapableConnection) grabber;
    sc.invoke("videoSoundMode", new Object[] { str });
    state.set(State.values.videosoundmode.name(), str);
    Util.log("grabber video sound mode = "+str, this);
  }
 
  public void publish(String str) {
View Full Code Here

        String vals[] = (settings.readSetting(current)).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]);
        sc.invoke("publish", new Object[] { str, width, height, fps, quality });
        // messageGrabber("stream "+str);
        messageplayer("command received: publish " + str, null, null);
//        state.set(PlayerCommands.publish, str);
//        state.set(State.values.stream, str);
        Util.log("publish: " + str, this);
View Full Code Here

    if (grabber == null) return;
    if (stream == null) return;
    if (grabber instanceof IServiceCapableConnection
        && (stream.equals("camandmic") || stream.equals("mic"))) {
      IServiceCapableConnection sc = (IServiceCapableConnection) grabber;
      sc.invoke("muteROVMic", new Object[] {});
    }
  }

  public void unmuteROVMic() {
    String stream = state.get(State.values.stream);
View Full Code Here

    if (grabber == null) return;
    if (stream == null) return;
    if (grabber instanceof IServiceCapableConnection
        && (stream.equals("camandmic") || stream.equals("mic"))) {
      IServiceCapableConnection sc = (IServiceCapableConnection) grabber;
      sc.invoke("unmuteROVMic", new Object[] {});
    }
  }

  private void muteROVMicOnMoveToggle() {
    if (state.getBoolean(State.values.muteOnROVmove)) {
View Full Code Here

       return false;
     }

    if (grabber instanceof IServiceCapableConnection) {
      IServiceCapableConnection sc = (IServiceCapableConnection) grabber;
      sc.invoke("framegrab", new Object[] {});
      state.set(State.values.framegrabbusy.name(), true);
    }
    return true;
  }
View Full Code Here

  private void messageplayer(String str, String status, String value) {
   
    if (player instanceof IServiceCapableConnection) {
      IServiceCapableConnection sc = (IServiceCapableConnection) player;
      sc.invoke("message", new Object[] { str, "green", status, value });
    }
   
    if(commandServer!=null) {
      if(str!=null){
        if(! str.equals("status check received")) // basic ping from client, ignore
View Full Code Here

  }

  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

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.