belongs to Maven artifact androidx.leanback:leanback:1.0.0-alpha1

PlaybackGlue.PlayerCallback

public static abstract class PlaybackGlue.PlayerCallback
extends Object

java.lang.Object
   ↳ androidx.leanback.media.PlaybackGlue.PlayerCallback


Interface to allow clients to take action once the video is ready to play and start stop.

Summary

Public constructors

PlaybackGlue.PlayerCallback()

Public methods

void onPlayCompleted(PlaybackGlue glue)

Event of the current media is finished.

void onPlayStateChanged(PlaybackGlue glue)

Event for Play/Pause state change.

void onPreparedStateChanged(PlaybackGlue glue)

Event for PlaybackGlue.isPrepared() changed.

Inherited methods

Public constructors

PlaybackGlue.PlayerCallback

PlaybackGlue.PlayerCallback ()

Public methods

onPlayCompleted

void onPlayCompleted (PlaybackGlue glue)

Event of the current media is finished.

Parameters
glue PlaybackGlue: The PlaybackGlue that has finished current media playing.

onPlayStateChanged

void onPlayStateChanged (PlaybackGlue glue)

Event for Play/Pause state change. See PlaybackGlue.isPlaying()}.

Parameters
glue PlaybackGlue: The PlaybackGlue that has changed playing or pausing state.

onPreparedStateChanged

void onPreparedStateChanged (PlaybackGlue glue)

Event for PlaybackGlue.isPrepared() changed.

Parameters
glue PlaybackGlue: The PlaybackGlue that has changed PlaybackGlue.isPrepared().