PlaybackGlue.PlayerCallback
public abstract class PlaybackGlue.PlayerCallback
Interface to allow clients to take action once the video is ready to play and start stop.
Summary
Public constructors |
|---|
Public methods |
|
|---|---|
void |
onPlayCompleted(@NonNull PlaybackGlue glue)Event of the current media is finished. |
void |
Event for Play/Pause state change. |
void |
Event for |
Public constructors
Public methods
onPlayCompleted
Added in 1.1.0
public void onPlayCompleted(@NonNull PlaybackGlue glue)
Event of the current media is finished.
| Parameters | |
|---|---|
@NonNull PlaybackGlue glue |
The PlaybackGlue that has finished current media playing. |
onPlayStateChanged
Added in 1.1.0
public void onPlayStateChanged(@NonNull PlaybackGlue glue)
Event for Play/Pause state change. See isPlaying}.
| Parameters | |
|---|---|
@NonNull PlaybackGlue glue |
The PlaybackGlue that has changed playing or pausing state. |
onPreparedStateChanged
Added in 1.1.0
public void onPreparedStateChanged(@NonNull PlaybackGlue glue)
Event for isPrepared changed.
| Parameters | |
|---|---|
@NonNull PlaybackGlue glue |
The PlaybackGlue that has changed |