RemoteMediaClient.ProgressListener

  • RemoteMediaClient.ProgressListener is an interface for receiving updates on the progress of currently playing media.

  • The frequency of updates is configured when adding the listener using RemoteMediaClient.addProgressListener.

  • Updates are delivered on the main thread.

  • The onProgressUpdated method is called when the progress or duration of the media changes, providing the current progress and duration in milliseconds.

public static interface RemoteMediaClient.ProgressListener

The listener interface for getting updates on the progress of the currently playing media. Updates on the listener happens with a frequency configured when it is added via calling RemoteMediaClient.addProgressListener(ProgressListener, long). Methods will be invoked on the main thread.

Public Method Summary

abstract void
onProgressUpdated(long progressMs, long durationMs)
Called when progress or duration of the current playing media changes.

Public Methods

public abstract void onProgressUpdated (long progressMs, long durationMs)

Called when progress or duration of the current playing media changes.

Parameters
progressMs The current progress in milliseconds.
durationMs The current duration in milliseconds.