Package org.red5.server.api.stream

Examples of org.red5.server.api.stream.IStreamAwareScopeHandler


     * Notifies subscribers on pause
     * @param item                Item that just has been paused
     * @param position            Playback head position
     */
    private void notifyItemPause(IPlayItem item, int position) {
    IStreamAwareScopeHandler handler = getStreamAwareHandler();
    if (handler != null) {
      try {
        handler.streamPlaylistVODItemPause(this, item, position);
      } catch (Throwable t) {
        log.error("error notify streamPlaylistVODItemPause", t);
      }
    }
  }
View Full Code Here


     * Notifies subscribers on resume
     * @param item                Item that just has been resumed
     * @param position            Playback head position
     */
    private void notifyItemResume(IPlayItem item, int position) {
    IStreamAwareScopeHandler handler = getStreamAwareHandler();
    if (handler != null) {
      try {
        handler.streamPlaylistVODItemResume(this, item, position);
      } catch (Throwable t) {
        log.error("error notify streamPlaylistVODItemResume", t);
      }
    }
  }
View Full Code Here

     * Notify on item seek
     * @param item            Playlist item
     * @param position        Seek position
     */
    private void notifyItemSeek(IPlayItem item, int position) {
    IStreamAwareScopeHandler handler = getStreamAwareHandler();
    if (handler != null) {
      try {
        handler.streamPlaylistVODItemSeek(this, item, position);
      } catch (Throwable t) {
        log.error("error notify streamPlaylistVODItemSeek", t);
      }
    }
  }
View Full Code Here

  /**
   *  Notifies handler on stream broadcast stop
   */
  private void notifyBroadcastClose() {
    IStreamAwareScopeHandler handler = getStreamAwareHandler();
    if (handler != null) {
      try {
        handler.streamBroadcastClose(this);
      } catch (Throwable t) {
        log.error("error notify streamBroadcastStop", t);
      }
    }
  }
View Full Code Here

  /**
   *  Notifies handler on stream broadcast start
   */
  private void notifyBroadcastStart() {
    IStreamAwareScopeHandler handler = getStreamAwareHandler();
    if (handler != null) {
      try {
        handler.streamBroadcastStart(this);
      } catch (Throwable t) {
        log.error("error notify streamBroadcastStart", t);
      }
    }
  }
View Full Code Here

     */
    protected void startBroadcastVOD() {
    nextRTMPMessage = null;
    vodStartTS = 0;
    serverStartTS = System.currentTimeMillis();
    IStreamAwareScopeHandler handler = getStreamAwareHandler();
    if (handler != null) {
      if (recordingFilename != null) {
        handler.streamRecordStart(this);
      } else {
        handler.streamPublishStart(this);
      }
    }
    notifyBroadcastStart();
    scheduleNextMessage();
  }
View Full Code Here

  /**
   *  Notifies handler on stream broadcast stop
   */
    protected void notifyBroadcastClose() {
    IStreamAwareScopeHandler handler = getStreamAwareHandler();
    if (handler != null) {
      try {
        handler.streamBroadcastClose(this);
      } catch (Throwable t) {
        log.error("error notify streamBroadcastStop", t);
      }
    }
  }
View Full Code Here

  /**
   *  Notifies handler on stream broadcast start
   */
    protected void notifyBroadcastStart() {
    IStreamAwareScopeHandler handler = getStreamAwareHandler();
    if (handler != null) {
      try {
        handler.streamBroadcastStart(this);
      } catch (Throwable t) {
        log.error("error notify streamBroadcastStart", t);
      }
    }
  }
View Full Code Here

      if (stream.getStreamListeners() != null) {
       
        for (Iterator<IStreamListener> iter = stream.getStreamListeners().iterator();iter.hasNext();) {
         
          IStreamListener iStreamListener = iter.next();
         
          ListenerAdapter listenerAdapter = (ListenerAdapter) iStreamListener;
         
          log.debug("Stream Closing ?? "+listenerAdapter.getFlvRecordingMetaDataId()+ " " +flvRecordingMetaDataId);
         
View Full Code Here

            if ( !( event instanceof IRTMPEvent ) ) {
                logger.debug( "skipping non rtmp event: " + event );
                return;
            }

            IRTMPEvent rtmpEvent = (IRTMPEvent) event;

            if ( logger.isDebugEnabled() ) {
                // logger.debug("rtmp event: " + rtmpEvent.getHeader() + ", " +
                // rtmpEvent.getClass().getSimpleName());
            }

            if ( !( rtmpEvent instanceof IStreamData ) ) {
                logger.debug( "skipping non stream data" );
                return;
            }

            if ( rtmpEvent.getHeader().getSize() == 0 ) {
                logger.debug( "skipping event where size == 0" );
                return;
            }

            if ( rtmpEvent instanceof VideoData ) {
View Full Code Here

TOP

Related Classes of org.red5.server.api.stream.IStreamAwareScopeHandler

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.