이제 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

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

public PlaybackGlue.PlayerCallback ()

Public methods

onPlayCompleted

public void onPlayCompleted (PlaybackGlue glue)

Event of the current media is finished.

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

onPlayStateChanged

public 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

public void onPreparedStateChanged (PlaybackGlue glue)

Event for PlaybackGlue.isPrepared() changed.

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