Interface LoadControlListener


public interface LoadControlListener
Interface definition for a callback to be notified of CastlabsLoadControl events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onLoadingChanged(boolean loading, long bufferedDurationUs, long audioBufferedDurationUs, long videoBufferedDurationUs, boolean aboveTimeMarks, float bufferLoad)
    Invoked each time the loading result is changed
  • Method Details

    • onLoadingChanged

      void onLoadingChanged(boolean loading, long bufferedDurationUs, long audioBufferedDurationUs, long videoBufferedDurationUs, boolean aboveTimeMarks, float bufferLoad)
      Invoked each time the loading result is changed
      Parameters:
      loading - Whether the control is now in a loading state.
      bufferedDurationUs - Buffered duration is microseconds, based on playlist (manifest) timeline
      audioBufferedDurationUs - Buffered audio duration in microseconds, based on audio segments or C.TIME_UNSET
      videoBufferedDurationUs - Buffered video duration in microseconds, based on video segments or C.TIME_UNSET
      aboveTimeMarks - True if the loader markers are all above the low time bounds
      bufferLoad - The buffer load percentage, based on buffer size