Metadata

public struct Metadata : Codable

Represents the metadata for media played on a FireTV Conforms to Codable to be represented as JSON

  • Type of the media represented by the Metadata, for example MetadataType.video

    Declaration

    Swift

    public let type: MetadataType
  • Title of the media represented by the Metadata

    Declaration

    Swift

    public var title: String?
  • Description of the media represented by the Metadata

    Declaration

    Swift

    public var description: String?
  • URL string of the album art for an audio media source

    Declaration

    Swift

    public private(set) var poster: String?
  • Subtitles of the media represented by the Metadata

    Declaration

    Swift

    public var tracks: [Subtitle]?
  • Boolean indicating if the media should replay

    Declaration

    Swift

    public var noreplay: Bool?
  • Initializes only using a MetadataType

    Declaration

    Swift

    public init(type: MetadataType)

    Parameters

    type

    the type of the metadata

  • Initializes with all available properties

    Declaration

    Swift

    public init(type: MetadataType, title: String?, description: String?, poster: URL?, tracks: [Subtitle]?, noreplay: Bool?)

    Parameters

    type

    the type of the media

    title

    the title of the media

    description

    a description for the media

    poster

    a poster for the media

    tracks

    audio/subtitle tracks for the media

    noreplay

    boolean indicating if media should be replayed