MediaMetadata

MediaMetadata

data class MediaMetadata(val artist: String? = null, val albumTitle: String? = null, val albumArtist: String? = null, val displayTitle: String? = null, val subtitle: String? = null, val duration: Long? = null, val userRating: Rating? = null, val overallRating: Rating? = null, val trackNumber: Int? = null, val totalTrackCount: Int? = null, val isBrowsable: Boolean? = null, val isPlayable: Boolean? = null, val recordingYear: Int? = null, val recordingMonth: Int? = null, val recordingDay: Int? = null, val releaseYear: Int? = null, val releaseMonth: Int? = null, val releaseDay: Int? = null, val writer: String? = null, val author: String? = null, val composer: String? = null, val conductor: String? = null, val discNumber: Int? = null, val totalDiscCount: Int? = null, val genre: String? = null, val compilation: String? = null, val station: String? = null, val mediaType: MediaMetadata.MediaType? = MediaType.Video)

Additional structured metadata broadcasted through Media Session for a Source.

Properties that already exist on com.bitmovin.player.api.source.SourceConfig, such as title, description, and posterSource, are intentionally not duplicated here.

Folders are not supported.

See https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata.

Constructors

MediaMetadataconstructor(artist: String? = null, albumTitle: String? = null, albumArtist: String? = null, displayTitle: String? = null, subtitle: String? = null, duration: Long? = null, userRating: Rating? = null, overallRating: Rating? = null, trackNumber: Int? = null, totalTrackCount: Int? = null, isBrowsable: Boolean? = null, isPlayable: Boolean? = null, recordingYear: Int? = null, recordingMonth: Int? = null, recordingDay: Int? = null, releaseYear: Int? = null, releaseMonth: Int? = null, releaseDay: Int? = null, writer: String? = null, author: String? = null, composer: String? = null, conductor: String? = null, discNumber: Int? = null, totalDiscCount: Int? = null, genre: String? = null, compilation: String? = null, station: String? = null, mediaType: MediaMetadata.MediaType? = MediaType.Video)

Types

NameSummary
Builderclass Builder
MediaTypeenum MediaType : Enum<MediaMetadata.MediaType>
The type of content described by the Source.

Properties

NameSummary
albumArtistval albumArtist: String?
albumTitleval albumTitle: String?
artistval artist: String?
authorval author: String?
compilationval compilation: String?
composerval composer: String?
conductorval conductor: String?
discNumberval discNumber: Int?
displayTitleval displayTitle: String?
durationval duration: Long?
genreval genre: String?
isBrowsableval isBrowsable: Boolean?
isPlayableval isPlayable: Boolean?
mediaTypeval mediaType: MediaMetadata.MediaType?
overallRatingval overallRating: Rating?
recordingDayval recordingDay: Int?
recordingMonthval recordingMonth: Int?
recordingYearval recordingYear: Int?
releaseDayval releaseDay: Int?
releaseMonthval releaseMonth: Int?
releaseYearval releaseYear: Int?
stationval station: String?
subtitleval subtitle: String?
totalDiscCountval totalDiscCount: Int?
totalTrackCountval totalTrackCount: Int?
trackNumberval trackNumber: Int?
userRatingval userRating: Rating?
writerval writer: String?