OTVMediaInfo

public class OTVMediaInfo : NSObject

The media information of the OTVPersistenceAsset

  • The asset Duration

    Declaration

    Swift

    @objc
    public internal(set) var duration: Double { get }
  • The selected bandwidth to download (Deprecated, please use selectedBitrate)

    Declaration

    Swift

    @available(*, deprecated, renamed: "selectedBitrate")
    @objc
    public var selectedBandwidth: Double { get }
  • Return the selected bitrate of the download

    Declaration

    Swift

    @objc
    public internal(set) var selectedBitrate: Double { get }
  • Return the selected resolution of the download

    Declaration

    Swift

    @objc
    public internal(set) var selectedResolution: CGSize { get }
  • Return the estimated size of the selected download

    Declaration

    Swift

    @objc
    public var selectedEstimateSize: UInt64 { get }
  • The selected video track to download. Please set one of the values returned from availableStreamInfo

    Note

    • Set this value only before the download start, otherwise it has no effect.

    Declaration

    Swift

    @objc
    public var selectedStreamInfo: OTVStreamInfo? { get set }
  • The AVMediaSelectionOption to be chosen for the asset being download. Either all (all trakcs) or defualt (default tracks)

    Declaration

    Swift

    @objc
    public var mediaSelections: OTVMediaSelectionOptions
  • The availble iFrame tracks for the media content

    Declaration

    Swift

    @objc
    public internal(set) var availableIFrameTracks: [OTVIframeTracks]? { get }
  • The list of availble video tracks to download and the media info assosiated

    Declaration

    Swift

    @objc
    public internal(set) var availableStreamInfo: [OTVStreamInfo]? { get }
  • Declaration

    Swift

    @objc
    public internal(set) var availableDrmInfo: [OTVStreamDrmInfo]? { get }