Package org.red5.server.stream.message

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


    private void sendPublishedStatus(IPlayItem item) {
      Status published = new Status(StatusCodes.NS_PLAY_PUBLISHNOTIFY);
      published.setClientid(getStreamId());
      published.setDetails(item.getName());

      StatusMessage unpublishedMsg = new StatusMessage();
      unpublishedMsg.setBody(published);
      doPushMessage(unpublishedMsg);
    }
View Full Code Here


    private void sendUnpublishedStatus(IPlayItem item) {
      Status unpublished = new Status(StatusCodes.NS_PLAY_UNPUBLISHNOTIFY);
      unpublished.setClientid(getStreamId());
      unpublished.setDetails(item.getName());

      StatusMessage unpublishedMsg = new StatusMessage();
      unpublishedMsg.setBody(unpublished);
      doPushMessage(unpublishedMsg);
    }
View Full Code Here

      Status notFound = new Status(StatusCodes.NS_PLAY_STREAMNOTFOUND);
      notFound.setClientid(getStreamId());
      notFound.setLevel(Status.ERROR);
      notFound.setDetails(item.getName());

      StatusMessage notFoundMsg = new StatusMessage();
      notFoundMsg.setBody(notFound);
      doPushMessage(notFoundMsg);
    }
View Full Code Here

      insufficientBW.setClientid(getStreamId());
      insufficientBW.setLevel(Status.WARNING);
      insufficientBW.setDetails(item.getName());
      insufficientBW.setDesciption("Data is playing behind the normal speed.");

      StatusMessage insufficientBWMsg = new StatusMessage();
      insufficientBWMsg.setBody(insufficientBW);
      doPushMessage(insufficientBWMsg);
    }
View Full Code Here

  /** {@inheritDoc} */
    public void pushMessage(IPipe pipe, IMessage message) {
    if (message instanceof ResetMessage) {
      streamTracker.reset();
    } else if (message instanceof StatusMessage) {
      StatusMessage statusMsg = (StatusMessage) message;
      data.sendStatus(statusMsg.getBody());
    } else if (message instanceof RTMPMessage) {
      RTMPMessage rtmpMsg = (RTMPMessage) message;
      IRTMPEvent msg = rtmpMsg.getBody();
      Header header = new Header();
      int timestamp = streamTracker.add(msg);
View Full Code Here

  private void sendPublishStartNotify() {
    Status publishStatus = new Status(StatusCodes.NS_PUBLISH_START);
    publishStatus.setClientid(getStreamId());
    publishStatus.setDetails(getPublishedName());

    StatusMessage startMsg = new StatusMessage();
    startMsg.setBody(publishStatus);
    try {
      connMsgOut.pushMessage(startMsg);
    } catch (IOException err) {
      log.error("Error while pushing message.", err);
    }
View Full Code Here

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

    StatusMessage stopMsg = new StatusMessage();
    stopMsg.setBody(stopStatus);
    try {
      connMsgOut.pushMessage(stopMsg);
    } catch (IOException err) {
      log.error("Error while pushing message.", err);
    }
View Full Code Here

    failedStatus.setLevel(Status.ERROR);
    failedStatus.setClientid(getStreamId());
    failedStatus.setDetails(getPublishedName());
    failedStatus.setDesciption(reason);

    StatusMessage failedMsg = new StatusMessage();
    failedMsg.setBody(failedStatus);
    try {
      connMsgOut.pushMessage(failedMsg);
    } catch (IOException err) {
      log.error("Error while pushing message.", err);
    }
View Full Code Here

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

    StatusMessage startMsg = new StatusMessage();
    startMsg.setBody(recordStatus);
    try {
      connMsgOut.pushMessage(startMsg);
    } catch (IOException err) {
      log.error("Error while pushing message.", err);
    }
View Full Code Here

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

    StatusMessage startMsg = new StatusMessage();
    startMsg.setBody(stopStatus);
    try {
      connMsgOut.pushMessage(startMsg);
    } catch (IOException err) {
      log.error("Error while pushing message.", err);
    }
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.