Package org.red5.server.stream.message

Examples of org.red5.server.stream.message.StatusMessage


  private void sendRecordStartNotify() {
    Status recordStatus = new Status(StatusCodes.NS_RECORD_START);
    recordStatus.setClientid(getStreamId());
    recordStatus.setDetails(getPublishedName());

    StatusMessage startMsg = new StatusMessage();
    startMsg.setBody(recordStatus);
    pushMessage(startMsg);
  }
View Full Code Here


  private void sendRecordStopNotify() {
    Status stopStatus = new Status(StatusCodes.NS_RECORD_STOP);
    stopStatus.setClientid(getStreamId());
    stopStatus.setDetails(getPublishedName());

    StatusMessage stopMsg = new StatusMessage();
    stopMsg.setBody(stopStatus);
    pushMessage(stopMsg);
  }
View Full Code Here

   * Sends a status message.
   *
   * @param status
   */
  private void doPushMessage(Status status) {
    StatusMessage message = new StatusMessage();
    message.setBody(status);
    doPushMessage(message);
  }
View Full Code Here

  public void pushMessage(IPipe pipe, IMessage message) {
    //log.trace("pushMessage - type: {}", message.getMessageType());
    if (message instanceof ResetMessage) {
      //ignore
    } else if (message instanceof StatusMessage) {
      StatusMessage statusMsg = (StatusMessage) message;
      data.sendStatus(statusMsg.getBody());
    } else if (message instanceof RTMPMessage) {
      //make sure chunk size has been sent
      if (!chunkSizeSent) {
        sendChunkSize();
      }
View Full Code Here

      reset.setDetails(item.getName());
      reset
          .setDesciption("Playing and resetting " + item.getName()
              + '.');

      StatusMessage resetMsg = new StatusMessage();
      resetMsg.setBody(reset);
      doPushMessage(resetMsg);
    }
View Full Code Here

      Status start = new Status(StatusCodes.NS_PLAY_START);
      start.setClientid(getStreamId());
      start.setDetails(item.getName());
      start.setDesciption("Started playing " + item.getName() + '.');

      StatusMessage startMsg = new StatusMessage();
      startMsg.setBody(start);
      doPushMessage(startMsg);
    }
View Full Code Here

      Status stop = new Status(StatusCodes.NS_PLAY_STOP);
      stop.setClientid(getStreamId());
      stop.setDesciption("Stopped playing " + item.getName() + ".");
      stop.setDetails(item.getName());

      StatusMessage stopMsg = new StatusMessage();
      stopMsg.setBody(stop);
      doPushMessage(stopMsg);
    }
View Full Code Here

      seek.setClientid(getStreamId());
      seek.setDetails(item.getName());
      seek.setDesciption("Seeking " + position + " (stream ID: "
          + getStreamId() + ").");

      StatusMessage seekMsg = new StatusMessage();
      seekMsg.setBody(seek);
      doPushMessage(seekMsg);
    }
View Full Code Here

    private void sendPauseStatus(IPlayItem item) {
      Status pause = new Status(StatusCodes.NS_PAUSE_NOTIFY);
      pause.setClientid(getStreamId());
      pause.setDetails(item.getName());

      StatusMessage pauseMsg = new StatusMessage();
      pauseMsg.setBody(pause);
      doPushMessage(pauseMsg);
    }
View Full Code Here

    private void sendResumeStatus(IPlayItem item) {
      Status resume = new Status(StatusCodes.NS_UNPAUSE_NOTIFY);
      resume.setClientid(getStreamId());
      resume.setDetails(item.getName());

      StatusMessage resumeMsg = new StatusMessage();
      resumeMsg.setBody(resume);
      doPushMessage(resumeMsg);
    }
View Full Code Here

TOP

Related Classes of org.red5.server.stream.message.StatusMessage

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.