MediaItem

open class MediaItem

MediaItem represents metadata associated Signature.

A MediaItem is used in two distinct ways

  1. Referenced by a MatchedMediaItem, and therefore as the result of a match.

  2. As a way of associating metadata with reference signatures in a CustomCatalog.

A MediaItem contains no required fields and may be entirely blank. They can also contain custom data set with custom keys when making a CustomCatalog.

Types

Companion
Link copied to clipboard
object Companion

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
get
Link copied to clipboard
fun get(key: String): Any?
Fetch a custom parameter given its key.
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

appleMusicID
Link copied to clipboard
val appleMusicID: String?
The AppleMusic ID.
appleMusicURL
Link copied to clipboard
val appleMusicURL: URL?
A link to this media on Apple Music.
artist
Link copied to clipboard
val artist: String?
The Artist.
artworkURL
Link copied to clipboard
val artworkURL: URL?
A URL to the artwork.
explicitContent
Link copied to clipboard
val explicitContent: Boolean?
Is this content explicit.
frequencySkewRanges
Link copied to clipboard
val frequencySkewRanges: List<HalfClosedDoubleRange>
A List of HalfClosedDoubleRange that indicate the frequency skew compared to the reference signatureReturns empty list if the backing value is not present, empty, or cannot be converted to a List of HalfClosedDoubleRanges.
genres
Link copied to clipboard
val genres: List<String>
Genres.
isrc
Link copied to clipboard
val isrc: String?
The ISRC (International Standard Recording Code).
shazamID
Link copied to clipboard
val shazamID: String?
The unique ShazamID.
subtitle
Link copied to clipboard
val subtitle: String?
Subtitle.
timeRanges
Link copied to clipboard
val timeRanges: List<HalfClosedDoubleRange>
A List of HalfClosedDoubleRange that indicate the offsets within the reference signature that this media item describesReturns empty list if the backing value is not present, empty, or cannot be converted to a List of HalfClosedDoubleRanges.
title
Link copied to clipboard
val title: String?
Title.
videoURL
Link copied to clipboard
val videoURL: URL?
A URL for a Video associated with the media.
webURL
Link copied to clipboard
val webURL: URL?
A web URL representing this result.

Inheritors

MatchedMediaItem
Link copied to clipboard