public abstract class

PlaybackGlue.PlayerCallback

extends java.lang.Object

 java.lang.Object

↳androidx.leanback.media.PlaybackGlue.PlayerCallback

Overview

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

Summary

Constructors
publicPlayerCallback()

Methods
public voidonPlayCompleted(PlaybackGlue glue)

Event of the current media is finished.

public voidonPlayStateChanged(PlaybackGlue glue)

Event for Play/Pause state change.

public voidonPreparedStateChanged(PlaybackGlue glue)

Event for PlaybackGlue.isPrepared() changed.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public PlayerCallback()

Methods

public void onPreparedStateChanged(PlaybackGlue glue)

Event for PlaybackGlue.isPrepared() changed.

Parameters:

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

public void onPlayStateChanged(PlaybackGlue glue)

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

Parameters:

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

public void onPlayCompleted(PlaybackGlue glue)

Event of the current media is finished.

Parameters:

glue: The PlaybackGlue that has finished current media playing.