Class: MusicTrackMediaMetadata

  • The MusicTrackMediaMetadata class provides a description for a music track.

  • It includes properties for various music-related details such as album and artist names, composer, release date, and content images.

  • Some properties, like artistName, releaseYear, and songName, are deprecated and should be replaced with their suggested alternatives.

  • The class is part of the cast.framework.messages namespace.

Constructor

MusicTrackMediaMetadata

new MusicTrackMediaMetadata()

Properties

albumArtist

(string or undefined)

The album artist name.

albumName

(string or undefined)

The album name.

artist

(string or undefined)

The track artist name.

artistName

(string or undefined)

The track artist name.

Deprecated
Use artist instead.

composer

(string or undefined)

The track composer name.

contentRating

The content rating.

discNumber

(number or undefined)

The disc number, in integer format.

images

(non-null Array of non-null cast.framework.messages.Image or undefined)

Content images, for example, cover art or a thumbnail of the currently-playing media.

releaseDate

(string or undefined)

The date when the track was released, in ISO 8601 format, for example 2014-02-10.

releaseYear

(number or undefined)

The album's release year (as an integer).

Deprecated
Use releaseDate instead.

secondaryImage

(non-null cast.framework.messages.Image or undefined)

A secondary image, for example, station logo for currently- playing media.

songName

(string or undefined)

The track name.

Deprecated
Use title instead.

title

(string or undefined)

The track title.

trackNumber

(number or undefined)

The track number in album, in integer format.