MediaPlaybackParameters

fun MediaPlaybackParameters(timeInfo: LiveData<MediaPlaybackTimeInfo?>, playbackState: LiveData<IviPlaybackState>, activeSource: LiveData<SourceInfo?>, activeMediaItem: LiveData<IviMediaItem?>, activeQueue: LiveData<List<IviMediaItem>>, availableActions: LiveDataActionList, isBuffering: LiveData<Boolean>, launchActionCallBack: ActionLaunchCall)

Parameters

timeInfo

The timeline information of the active media item. null if nothing is being played.

playbackState

The current playback state of the media item. IviPlaybackState.IDLE if nothing is being played or if no source is active.

activeSource

The active media source. null if no source is active.

activeMediaItem

The active media item. null if no media is active.

activeQueue

The current queue of media items. Empty if no queue is present.

availableActions

The LiveDataActionList provided for the current activeSource and activeMediaItem. Empty if nothing is being played or if no actions are currently advertised as available by the activeSource.

Each source supports different actions at different times. It is therefore not advisable to rely on any of them to be available at any specific moment.

isBuffering

Whether the current media source is buffering data to start or continue playing.

launchActionCallBack

Lambda that can be used by MediaPlaybackViewModel to launch the Actions.