InPlayerItem

public struct InPlayerItem : Codable

Item model

  • Custom content type enum with associated values

         case html(content: String)
         case accedo(asset: AccedoAsset)
         case brightcove(asset: BrightcoveAsset)
         case cloudfront(asset: CloudfrontAsset)
         case daCast(asset: DaCastAsset)
         case jwPlayer(asset: JwPlayerAsset)
         case laola(asset: LaolaAsset)
         case kaltura(asset: KalturaAsset)
         case livestream(asset: LivestreamAsset)
         case mediaspace(content: String)
         case panopto(content: String)
         case piksel(content: String)
         case qbrick(asset: QbrickAsset)
         case sportOne(asset: SportOneAsset)
         case sportRadar(asset: SportRadarAsset)
         case streamAMG(asset: StreamAMGAsset)
         case witsia(asset: WitsiaAsset)
         case wowza(asset: WowzaAsset)
         case unknown
    
    See more

    Declaration

    Swift

    public enum ContentType
  • id

    Item’s ID

    Declaration

    Swift

    public let id: Int?
  • Merchant’s ID

    Declaration

    Swift

    public let merchantId: Int?
  • Merchant’s UUID

    Declaration

    Swift

    public let merchantUuid: String?
  • Shows whether the asset is active and can be monetized. If nil, use the active property

    Declaration

    Swift

    public let isActive: Bool?
  • Shows whether the asset is active and can be monetized. If nil, use the is_active property

    Declaration

    Swift

    public let active: Bool?
  • The asset’s title

    Declaration

    Swift

    public let title: String?
  • Access control type object

    Declaration

    Swift

    public let accessControlType: InPlayerAccessControlType?
  • Item type object

    Declaration

    Swift

    public let itemType: InPlayerItemType?
  • Age Restriction object

    Declaration

    Swift

    public let ageRestriction: InPlayerAgeRestriction?
  • Object containing additional information about the item

    Declaration

    Swift

    public let metadata: [InPlayerItemMetadata]?
  • Undocumented

    Declaration

    Swift

    public let metahash: [String : String]?
  • The date the asset was created on, measured in seconds since 1 January 1970 (UTC)

    Declaration

    Swift

    public let createdAt: Double?
  • The date when the asset was last updated, measured in seconds since 1 January 1970 (UTC)

    Declaration

    Swift

    public let updatedAt: Double?
  • The asset’s content which can be a json object, a string, an html or an xml document

    Declaration

    Swift

    public let content: String?
  • Template id for asset

    Declaration

    Swift

    public let templateId: Int?
  • Decoder method

    Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Encoder method

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Method that return parsed content as enum with associated values

    Declaration

    Swift

    public func parseContent() -> ContentType