Examples of IStreamAwareScopeHandler


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

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

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

     * Notifies subscribers on item playback
     * @param item               Item being played
     * @param isLive             Is it a live broadcasting?
     */
    private void notifyItemPlay(IPlayItem item, boolean isLive) {
    IStreamAwareScopeHandler handler = getStreamAwareHandler();
    if (handler != null) {
      try {
        handler.streamPlaylistItemPlay(this, item, isLive);
      } catch (Throwable t) {
        log.error("error notify streamPlaylistItemPlay", t);
      }
    }
  }
View Full Code Here

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

    /**
     * Notifies subscribers on item stop
     * @param item               Item that just has been stopped
     */
    private void notifyItemStop(IPlayItem item) {
    IStreamAwareScopeHandler handler = getStreamAwareHandler();
    if (handler != null) {
      try {
        handler.streamPlaylistItemStop(this, item);
      } catch (Throwable t) {
        log.error("error notify streamPlaylistItemStop", t);
      }
    }
  }
View Full Code Here

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

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

     * 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

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

     * 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

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

  /**
   *  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

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

  /**
   *  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

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

     */
    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

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

  /**
   *  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
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.