Examples of deleteStreamById()


Examples of org.red5.server.api.stream.IStreamCapableConnection.deleteStreamById()

          if (bsScope != null && conn instanceof BaseConnection) {
            ((BaseConnection) conn).unregisterBasicScope(bsScope);
          }
        }
        stream.close();
        scConn.deleteStreamById(streamId);
        // in case of broadcasting stream, status is sent automatically by Red5
        if (!(stream instanceof IClientBroadcastStream)) {
          StreamService.sendNetStreamStatus(conn, StatusCodes.NS_PLAY_STOP, "Stream closed by server", stream.getName(), Status.STATUS, streamId);
        }
      } else {
View Full Code Here

Examples of org.red5.server.api.stream.IStreamCapableConnection.deleteStreamById()

        try {
          subscriberStream.play();
        } catch (IOException err) {
          if (created) {
            stream.close();
            streamConn.deleteStreamById(streamId);
          }
          sendNSFailed(streamConn, StatusCodes.NS_FAILED, err.getMessage(), name, streamId);
        }
      }
    } else {
View Full Code Here

Examples of org.red5.server.api.stream.IStreamCapableConnection.deleteStreamById()

              if (conn instanceof BaseConnection) {
                ((BaseConnection) conn).unregisterBasicScope(bsScope);
              }
            }
            bs.close();
            streamConn.deleteStreamById(streamId);
          }
        }
      }
    }
  }
View Full Code Here

Examples of org.red5.server.api.stream.IStreamCapableConnection.deleteStreamById()

      } catch (IOException e) {
        log.warn("Stream I/O exception", e);
        sendNSFailed(streamConn, StatusCodes.NS_RECORD_NOACCESS, "The file could not be created/written to.", name, streamId);
        bs.close();
        if (created) {
          streamConn.deleteStreamById(streamId);
        }
      } catch (Exception e) {
        log.warn("Exception on publish", e);
      }
    }
View Full Code Here

Examples of org.red5.server.api.stream.IStreamCapableConnection.deleteStreamById()

    try {
      subscriberStream.play();
    } catch (IOException err) {
      if (created) {
        stream.close();
        streamConn.deleteStreamById(streamId);
      }
      sendNSFailed((RTMPConnection) streamConn, err.getMessage(), name, streamId);
    }
  }
View Full Code Here

Examples of org.red5.server.api.stream.IStreamCapableConnection.deleteStreamById()

        if (conn instanceof BaseConnection) {
          ((BaseConnection) conn).unregisterBasicScope(bsScope);
        }
      }
      bs.close();
      streamConn.deleteStreamById(streamId);
    }
  }

  /** {@inheritDoc} */
    public void publish(String name, String mode) {
View Full Code Here

Examples of org.red5.server.api.stream.IStreamCapableConnection.deleteStreamById()

      // 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) {
      logger.warn("publish caught Exception");
    }
  }
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.