java.lang.Object | ||
↳ | android.support.v17.leanback.app.PlaybackControlGlue | |
↳ | android.support.v17.leanback.app.MediaControllerGlue |
A helper class for implementing a glue layer between a
PlaybackOverlayFragment
and a
MediaControllerCompat
.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.app.PlaybackControlGlue
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for the glue.
| |||||||||||
Constructor for the glue.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Attaches to the given media controller.
| |||||||||||
Detaches from the media controller.
| |||||||||||
Returns the current position of the media item in milliseconds.
| |||||||||||
Returns the current playback speed.
| |||||||||||
Returns a bitmap of the art for the media item.
| |||||||||||
Returns the media controller currently attached.
| |||||||||||
Returns the duration of the media item in milliseconds.
| |||||||||||
Returns the subtitle of the media item.
| |||||||||||
Returns the title of the media item.
| |||||||||||
Returns a bitmask of actions supported by the media player.
| |||||||||||
Returns true if there is a valid media item.
| |||||||||||
Returns true if media is currently playing.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Pause playback.
| |||||||||||
Skip to the next track.
| |||||||||||
Skip to the previous track.
| |||||||||||
Start playback at the given speed.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.app.PlaybackControlGlue
| |||||||||||
From class
java.lang.Object
|
Constructor for the glue.
The PlaybackOverlayFragment
must be passed in.
A OnItemViewClickedListener
and
PlaybackOverlayFragment.InputEventHandler
will be set on the fragment.
seekSpeeds | Array of seek speeds for fast forward and rewind. |
---|
Constructor for the glue.
The PlaybackOverlayFragment
must be passed in.
A OnItemViewClickedListener
and
PlaybackOverlayFragment.InputEventHandler
will be set on the fragment.
fastForwardSpeeds | Array of seek speeds for fast forward. |
---|---|
rewindSpeeds | Array of seek speeds for rewind. |
Attaches to the given media controller.
Detaches from the media controller. Must be called when the object is no longer needed.
Returns the current position of the media item in milliseconds.
Returns the current playback speed. When playing normally,
PLAYBACK_SPEED_NORMAL
should be returned.
Returns the media controller currently attached.
Returns the duration of the media item in milliseconds.
Returns a bitmask of actions supported by the media player.
Returns true if there is a valid media item.
Returns true if media is currently playing.
Pause playback.
Skip to the next track.
Skip to the previous track.
Start playback at the given speed.
speed | The desired playback speed. For normal playback this will be
PLAYBACK_SPEED_NORMAL ; higher positive values for fast forward,
and negative values for rewind.
|
---|