MediaControllerCompat.TransportControls

public static abstract class MediaControllerCompat.TransportControls
extends Object

java.lang.Object
   ↳ android.support.v4.media.session.MediaControllerCompat.TransportControls


Interface for controlling media playback on a session. This allows an app to send media transport commands to the session.

Summary

Constants

String EXTRA_LEGACY_STREAM_TYPE

This constant is deprecated. Use MediaConstants.TRANSPORT_CONTROLS_EXTRAS_KEY_LEGACY_STREAM_TYPE instead.

Public methods

abstract void fastForward()

Starts fast forwarding.

abstract void pause()

Request that the player pause its playback and stay at its current position.

abstract void play()

Request that the player start its playback at its current position.

abstract void playFromMediaId(String mediaId, Bundle extras)

Request that the player start playback for a specific media id.

abstract void playFromSearch(String query, Bundle extras)

Request that the player start playback for a specific search query.

abstract void playFromUri(Uri uri, Bundle extras)

Request that the player start playback for a specific Uri.

abstract void prepare()

Request that the player prepare for playback.

abstract void prepareFromMediaId(String mediaId, Bundle extras)

Request that the player prepare playback for a specific media id.

abstract void prepareFromSearch(String query, Bundle extras)

Request that the player prepare playback for a specific search query.

abstract void prepareFromUri(Uri uri, Bundle ext