Asset
data class Asset(val mediaSource: MediaSource, val trackersData: MediaItemTrackerData = MutableMediaItemTrackerData.EMPTY.toMediaItemTrackerData(), val mediaMetadata: MediaMetadata = MediaMetadata.EMPTY, val blockedTimeRanges: List<BlockedTimeRange> = emptyList())
Represents an asset, which contains the necessary components for playback.
Constructors
Link copied to clipboard
constructor(mediaSource: MediaSource, trackersData: MediaItemTrackerData = MutableMediaItemTrackerData.EMPTY.toMediaItemTrackerData(), mediaMetadata: MediaMetadata = MediaMetadata.EMPTY, blockedTimeRanges: List<BlockedTimeRange> = emptyList())
Properties
Link copied to clipboard
A list of BlockedTimeRange instances representing periods within the media that should be skipped during playback.
Link copied to clipboard
The MediaMetadata providing descriptive information about the media item, such as title, artist, etc.
Link copied to clipboard
The MediaSource used by the player to play the content.
Link copied to clipboard
The MediaItemTrackerData containing information for tracking playback events and metrics.