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
  • Access control type object

    Declaration

    Swift

    public let accessControlType: InPlayerAccessControlType?
  • The date the asset was created on, measured in seconds since 1 January 1970 (UTC)

    Declaration

    Swift

    public let createdAt: Double?
  • id

    Item’s ID

    Declaration

    Swift

    public let id: Int?
  • Shows whether the asset is active and can be monetized

    Declaration

    Swift

    public let isActive: Bool?
  • Item type object

    Declaration

    Swift

    public let itemType: InPlayerItemType?
  • Merchant’s ID

    Declaration

    Swift

    public let merchantId: Int?
  • Merchant’s UUID

    Declaration

    Swift

    public let merchantUuid: String?
  • Object containing additional information about the item

    Declaration

    Swift

    public let metadata: [InPlayerItemMetadata]?
  • Undocumented

    Declaration

    Swift

    public let metahash: [String : String]?
  • The asset’s title

    Declaration

    Swift

    public let title: String?
  • 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?
  • Decoder method

    Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Method that return parsed content as enum with associated values

    Declaration

    Swift

    public func parseContent() -> ContentType