Methods Summary |
---|
public abstract int | getBufferPercentage()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.
|
public abstract long | getCurrentPosition()Retrieve the current playback location in the media stream, in milliseconds.
|
public abstract long | getDuration()Retrieve the total duration of the media stream, in milliseconds.
|
public abstract int | getTransportControlFlags()Retrieve the flags for the media transport control buttons that this transport supports.
Result is a combination of the following flags:
{@link TransportMediator#FLAG_KEY_MEDIA_PREVIOUS},
{@link TransportMediator#FLAG_KEY_MEDIA_REWIND},
{@link TransportMediator#FLAG_KEY_MEDIA_PLAY},
{@link TransportMediator#FLAG_KEY_MEDIA_PLAY_PAUSE},
{@link TransportMediator#FLAG_KEY_MEDIA_PAUSE},
{@link TransportMediator#FLAG_KEY_MEDIA_STOP},
{@link TransportMediator#FLAG_KEY_MEDIA_FAST_FORWARD},
{@link TransportMediator#FLAG_KEY_MEDIA_NEXT}
|
public abstract boolean | isPlaying()Return whether the player is currently playing its stream.
|
public abstract void | pausePlaying()Request that the player pause its playback and stay at its current position.
|
public abstract void | registerStateListener(TransportStateListener listener)Start listening to changes in playback state.
|
public abstract void | seekTo(long pos)Move to a new location in the media stream.
|
public abstract void | startPlaying()Request that the player start its playback at its current position.
|
public abstract void | stopPlaying()Request that the player stop its playback; it may clear its state in whatever
way is appropriate.
|
public abstract void | unregisterStateListener(TransportStateListener listener)Stop listening to changes in playback state.
|