public static interface

RemoteMediaClient.ProgressListener

com.google.android.gms.cast.framework.media.RemoteMediaClient.ProgressListener

Class Overview

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 addProgressListener(ProgressListener, long). Methods will be invoked on the main thread.

Summary

Public Methods
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 long: The current progress in milliseconds.
durationMs long: The current duration in milliseconds.