StandardMediaControls

The set of standard media controls.

defaultFactory is the factory that is used by default to create these controls.

The Android Automotive media player UI only shows the SKIP_BACKWARD, TOGGLE_PLAY, SKIP_FORWARD standard controls even if the source is advertising supporting any of the others. Due to this decision, most media sources on the market advertise additional custom actions that should be standard actions, such as shuffle and repeat, to make sure they are shown in the UI. To avoid action duplication, the TTDC media UI follows the AAOSP media player UI logic instead of the API, and provides no defaultFactory for standard actions other than SKIP_BACKWARD, TOGGLE_PLAY, SKIP_FORWARD.

See MediaControlPolicy.replacedStandardControls to change the default behavior and provide MediaControlFactory for a given StandardMediaControls.

Entries

Link copied to clipboard

Seeks a fixed amount of seconds backwards.

Link copied to clipboard

Skips backward to the start of the current item, or the previous item.

Link copied to clipboard

Toggles between playing and paused state.

Link copied to clipboard

Skips forward, towards the next media item.

Link copied to clipboard

Seeks a fixed amount of seconds forwards.

Link copied to clipboard

Toggles shuffling through the current playlist.

Link copied to clipboard

Toggles between different repeat settings (no repeat, repeat current item, repeat queue).

Properties

Link copied to clipboard

Inherited properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.