CastPlatformAsset

public struct CastPlatformAsset : Codable

Represents the media information that the receiver application will use for content playback.

  • The unique id of the content to cast.

    Declaration

    Swift

    public let mediaID: String
  • The ConsumptionType of the content. It can be LIVE or VOD

    Declaration

    Swift

    public let consumptionType: String
  • The catalog type of the content.

    Declaration

    Swift

    public let catalogType: String
  • The MediaType of the content. It can be DASH, SMOOTH_STREAMING or HLS.

    Declaration

    Swift

    public let mediaType: String
  • The DrmType of the content

    Declaration

    Swift

    public let drmScheme: String
  • The playback mode for LIVE playback. This parameter is optional for deafult LIVE playback and mandatory for restart and catchup modes.

    Declaration

    Swift

    public let playbackMode: String?
  • he unique identifier of the live event/channel (optional).

    Declaration

    Swift

    public let eventId: String?
  • The start time for LIVE stream. This parameter is mandatory LIVE restart and catchup modes. The value must be in ISO 8601 time format. For eg: 2021-02-14T00:00Z

    Declaration

    Swift

    public let startTime: String?
  • The end time for LIVE stream. This parameter is mandatory for LIVE catchup mode. The value must be in ISO 8601 time format. For eg: 2021-02-14T00:00Z

    Declaration

    Swift

    public let endTime: String?
  • list of custom parameters. For example, ads parameters prefixed with “ads.”

    Declaration

    Swift

    public let urlParameters: [String : String]?
  • The initial time for cast player to start playback in milliseconds. Pass nil to start from the beginning.

    Declaration

    Swift

    public let initialPlaybackPositionMs: Int64?
  • Undocumented

    Declaration

    Swift

    public init(mediaID: String, consumptionType: String, catalogType: String, mediaType: String, drmScheme: String, playbackMode: String?, eventId: String?, startTime: String?, endTime: String?, urlParameters: [String : String]?, initialPlaybackPositionMs: Int64?)