Package com.castlabs.android.player
Interface LoadControlListener
public interface LoadControlListener
Interface definition for a callback to be notified of
CastlabsLoadControl events.-
Method Summary
Modifier and TypeMethodDescriptionvoidonLoadingChanged(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. All the durations do not include back buffer if any is present.- Parameters:
loading- Whether the control is now in a loading state.bufferedDurationUs- Buffered duration is microseconds, based on playlist (manifest) timelineaudioBufferedDurationUs- Buffered audio duration in microseconds, based on audio segments orC.TIME_UNSETvideoBufferedDurationUs- Buffered video duration in microseconds, based on video segments orC.TIME_UNSETaboveTimeMarks- True if the loader markers are all above the low time boundsbufferLoad- The buffer load percentage, based on buffer size
-