PlayerAudioFocusContractTest.PlayerInfo


public interface PlayerAudioFocusContractTest.PlayerInfo


Interface that allows access to a Player instance and its internal Clock and processing Looper.

Summary

Public methods

abstract Looper
abstract Clock
abstract Looper
abstract Player
default void

Sets a MediaItem on the Player.

Public methods

getAudioFocusListenerLooper

abstract Looper getAudioFocusListenerLooper()

getClock

abstract Clock getClock()

getPlaybackLooper

abstract Looper getPlaybackLooper()

getPlayer

abstract Player getPlayer()

setMediaItem

default void setMediaItem(MediaItem item)

Sets a MediaItem on the Player.

Only implement this method if the Player implementation does not support COMMAND_SET_MEDIA_ITEM.