PlaybackControlsRow.OnPlaybackProgressCallback


public class PlaybackControlsRow.OnPlaybackProgressCallback


Listener for progress or duration change.

Summary

Public constructors

Public methods

void
onBufferedPositionChanged(
    PlaybackControlsRow row,
    long bufferedProgressMs
)

Called when getBufferedPosition changed.

void
onCurrentPositionChanged(PlaybackControlsRow row, long currentTimeMs)

Called when getCurrentPosition changed.

void
onDurationChanged(PlaybackControlsRow row, long totalTime)

Called when getDuration changed.

Public constructors

OnPlaybackProgressCallback

Added in 1.1.0
public OnPlaybackProgressCallback()

Public methods

onBufferedPositionChanged

Added in 1.1.0
public void onBufferedPositionChanged(
    PlaybackControlsRow row,
    long bufferedProgressMs
)

Called when getBufferedPosition changed.

Parameters
PlaybackControlsRow row

The PlaybackControlsRow that buffered progress changed.

long bufferedProgressMs

Buffered time in milliseconds.

onCurrentPositionChanged

Added in 1.1.0
public void onCurrentPositionChanged(PlaybackControlsRow row, long currentTimeMs)

Called when getCurrentPosition changed.

Parameters
PlaybackControlsRow row

The PlaybackControlsRow that current time changed.

long currentTimeMs

Current time in milliseconds.

onDurationChanged

Added in 1.1.0
public void onDurationChanged(PlaybackControlsRow row, long totalTime)

Called when getDuration changed.

Parameters
PlaybackControlsRow row

The PlaybackControlsRow that total time changed.

long totalTime

Total time in milliseconds.