Package org.red5.server.api.stream

Examples of org.red5.server.api.stream.ISubscriberStream.seek()


      int streamId = conn.getStreamId();
      IClientStream stream = streamConn.getStreamById(streamId);
      if (stream != null && stream instanceof ISubscriberStream) {
        ISubscriberStream subscriberStream = (ISubscriberStream) stream;
        try {
          subscriberStream.seek(position);
        } catch (OperationNotSupportedException err) {
          sendNSFailed(streamConn, StatusCodes.NS_SEEK_FAILED, "The stream doesn't support seeking.", stream.getName(), streamId);
        }
      }
    }
View Full Code Here


    if (stream == null || !(stream instanceof ISubscriberStream)) {
      return;
    }
    ISubscriberStream subscriberStream = (ISubscriberStream) stream;
    try {
      subscriberStream.seek(position);
    } catch (OperationNotSupportedException err) {
      Status seekFailed = new Status(StatusCodes.NS_SEEK_FAILED);
      seekFailed.setClientid(streamId);
      seekFailed.setDesciption("The stream doesn't support seeking.");
      seekFailed.setLevel("error");
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.