java.lang.Object | |
↳ | android.support.v4.media.TransportController |
Known Direct Subclasses |
Base interface to controlling a media transport. This is the interface for implementing things like on-screen controls: it allows them to request changes in playback, retrieve the current playback state, and monitor for changes to the playback state.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Retrieve amount, in percentage (0-100), that the media stream has been buffered
on to the local device.
|
||||||||||
|
Retrieve the current playback location in the media stream, in milliseconds.
|
||||||||||
|
Retrieve the total duration of the media stream, in milliseconds.
|
||||||||||
|
Retrieve the flags for the media transport control buttons that this transport supports.
|
||||||||||
|
Return whether the player is currently playing its stream.
|
||||||||||
|
Request that the player pause its playback and stay at its current position.
|
||||||||||
|
Start listening to changes in playback state.
|
||||||||||
|
Move to a new location in the media stream.
|
||||||||||
|
Request that the player start its playback at its current position.
|
||||||||||
|
Request that the player stop its playback; it may clear its state in whatever
way is appropriate.
|
||||||||||
|
Stop listening to changes in playback state.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Retrieve amount, in percentage (0-100), that the media stream has been buffered on to the local device. Return 100 if the stream is always local.
Retrieve the current playback location in the media stream, in milliseconds.
Retrieve the total duration of the media stream, in milliseconds.
Retrieve the flags for the media transport control buttons that this transport supports.
Result is a combination of the following flags:
FLAG_KEY_MEDIA_PREVIOUS
,
FLAG_KEY_MEDIA_REWIND
,
FLAG_KEY_MEDIA_PLAY
,
FLAG_KEY_MEDIA_PLAY_PAUSE
,
FLAG_KEY_MEDIA_PAUSE
,
FLAG_KEY_MEDIA_STOP
,
FLAG_KEY_MEDIA_FAST_FORWARD
,
FLAG_KEY_MEDIA_NEXT
Return whether the player is currently playing its stream.
Request that the player pause its playback and stay at its current position.
Start listening to changes in playback state.
Move to a new location in the media stream.
pos | Position to move to, in milliseconds. |
---|
Request that the player start its playback at its current position.
Request that the player stop its playback; it may clear its state in whatever way is appropriate.
Stop listening to changes in playback state.