ChromecastMetadataDescription

@objc(THEOplayerChromecastMetadataDescription)
public class ChromecastMetadataDescription : MetadataDescription

The description of the metadata used by Chromecast.

  • An array of ChromecastMetadataImages.

    Declaration

    Swift

    @objc
    public var images: [ChromecastMetadataImage]?
  • The release date using the following string format: “YYYY-MM-DD”

    Remark

    e.g. 2017-03-14

    Declaration

    Swift

    @objc
    public var releaseDate: String?
  • The subtitle / short explanation about the content.

    Declaration

    Swift

    @objc
    public var subtitle: String?
  • The release year as an integer number.

    Declaration

    Swift

    public var releaseYear: Int?
  • The type. Defaults to “generic” if unset.

    Declaration

    Swift

    public var type: ChromecastMetadataType?
  • Constructs a ChromecastMetadataDescription.

    Declaration

    Swift

    public init(images: [ChromecastMetadataImage]? = nil, releaseDate: String? = nil, releaseYear: Int? = nil, title: String? = nil, subtitle: String? = nil, type: ChromecastMetadataType? = .GENERIC, metadataKeys: [String : Any]? = nil)

    Parameters

    images

    List of content images for the current source, defaults to nil.

    releaseDate

    The release date of the current source, defaults to nil.

    releaseYear

    The release year as an integer number, defaults to nil.

    title

    The title of the content, defaults to nil.

    subtitle

    The subtitle of the content, defaults to nil.

    type

    The ChromecastMetadataType of the current source, defaults to GENERIC.

    metadataKeys

    The keys for the ChromecastMetadata, defaults to nil.