Package org.red5.server.net.rtmp

Examples of org.red5.server.net.rtmp.Channel.sendStatus()


      s.setDesciption(description);
      s.setDetails(name);
      s.setLevel(status);
      // get the channel
      Channel channel = ((RTMPConnection) conn).getChannel((byte) (4 + ((streamId - 1) * 5)));
      channel.sendStatus(s);
    } else {
      throw new RuntimeException("Connection is not RTMPConnection: " + conn);
    }
  }

View Full Code Here


      badName.setDetails(name);
      badName.setLevel("error");

      // FIXME: there should be a direct way to send the status
      Channel channel = ((RTMPConnection) streamConn).getChannel((byte) (4 + ((streamId-1) * 5)));
      channel.sendStatus(badName);
      return;
    }

    IClientStream stream = streamConn.getStreamById(streamId);
    if (stream != null && !(stream instanceof IClientBroadcastStream)) {
View Full Code Here

      accessDenied.setDetails(name);
      accessDenied.setLevel("error");

      // FIXME: there should be a direct way to send the status
      Channel channel = ((RTMPConnection) streamConn).getChannel((byte) (4 + ((streamId-1) * 5)));
      channel.sendStatus(accessDenied);
      bs.close();
      if (created)
        streamConn.deleteStreamById(streamId);
      return;
    } catch (Exception e) {
View Full Code Here

      seekFailed.setDesciption("The stream doesn't support seeking.");
      seekFailed.setLevel("error");

      // FIXME: there should be a direct way to send the status
      Channel channel = ((RTMPConnection) streamConn).getChannel((byte) (4 + ((streamId-1) * 5)));
      channel.sendStatus(seekFailed);
    }
  }

  /** {@inheritDoc} */
    public void receiveVideo(boolean receive) {
View Full Code Here

    failed.setDetails(name);
    failed.setLevel("error");

    // FIXME: there should be a direct way to send the status
    Channel channel = conn.getChannel((byte) (4 + ((streamId-1) * 5)));
    channel.sendStatus(failed);
    }
   
}
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.