Action.SetMediaItems
Artifact: androidx.media3:media3-test-utils
class Action.SetMediaItems : Action
Calls setMediaSources.
Summary
Public constructors |
|---|
SetMediaItems( |
Protected functions |
|
|---|---|
Unit |
doActionImpl(Called by |
Public constructors
SetMediaItems
SetMediaItems(
tag: String!,
mediaItemIndex: Int,
positionMs: Long,
mediaSources: Array<MediaSource!>!
)
| Parameters | |
|---|---|
tag: String! |
A tag to use for logging. |
mediaItemIndex: Int |
The media item index to start playback from. |
positionMs: Long |
The position in milliseconds to start playback from. |
mediaSources: Array<MediaSource!>! |
The media sources to populate the playlist with. |
Protected functions
doActionImpl
protected fun doActionImpl(
player: ExoPlayer!,
trackSelector: DefaultTrackSelector!,
surface: Surface?
): Unit
Called by doActionAndScheduleNextImpl to perform the action.
| Parameters | |
|---|---|
player: ExoPlayer! |
The player to which the action should be applied. |
trackSelector: DefaultTrackSelector! |
The track selector to which the action should be applied. |
surface: Surface? |
The surface to use when applying actions, or |