belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
PlaybackGlueHost.PlayerCallback
public
static
class
PlaybackGlueHost.PlayerCallback
extends Object
java.lang.Object | |
↳ | android.support.v17.leanback.media.PlaybackGlueHost.PlayerCallback |
Optional Client that implemented by PlaybackGlueHost to respond to player event.
Summary
Public constructors | |
---|---|
PlaybackGlueHost.PlayerCallback()
|
Public methods | |
---|---|
void
|
onBufferingStateChanged(boolean start)
notify media starts/stops buffering/preparing. |
void
|
onError(int errorCode, CharSequence errorMessage)
notify media has error. |
void
|
onVideoSizeChanged(int videoWidth, int videoHeight)
Size of the video changes, the Host should adjust SurfaceView's layout width and height. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public constructors
Public methods
onBufferingStateChanged
void onBufferingStateChanged (boolean start)
notify media starts/stops buffering/preparing. The Host could start or stop progress bar.
Parameters | |
---|---|
start |
boolean : True for buffering start, false otherwise.
|
onError
void onError (int errorCode, CharSequence errorMessage)
notify media has error. The Host could show error dialog.
Parameters | |
---|---|
errorCode |
int : Optional error code for specific implementation. |
errorMessage |
CharSequence : Optional error message for specific implementation.
|
onVideoSizeChanged
void onVideoSizeChanged (int videoWidth, int videoHeight)
Size of the video changes, the Host should adjust SurfaceView's layout width and height.
Interfaces
Classes
- MediaControllerAdapter
- MediaControllerGlue
- MediaPlayerAdapter
- PlaybackBannerControlGlue
- PlaybackBaseControlGlue
- PlaybackControlGlue
- PlaybackGlue
- PlaybackGlue.PlayerCallback
- PlaybackGlueHost
- PlaybackGlueHost.HostCallback
- PlaybackGlueHost.PlayerCallback
- PlaybackTransportControlGlue
- PlayerAdapter
- PlayerAdapter.Callback