AssetData
@objcMembers
public class AssetData : NSObject
Object representation of Asset to store on device
-
VOD id
Declaration
Swift
@objc public dynamic var id: String -
VOD title
Declaration
Swift
@objc public dynamic var title: String -
Local path where asset is stored on device
Declaration
Swift
public var localFileUrl: URL? { get } -
Asset downloading state
Declaration
Swift
public var downloadState: AssetDownloadState { get } -
Asset downloading state raw representation
Declaration
Swift
@objc public dynamic var downloadStateRaw: String -
Asset downloading progress
Declaration
Swift
@objc public dynamic var downloadProgress: Double -
Asset license expiration date
Declaration
Swift
@objc public dynamic var expiryDate: Date? -
File size
Declaration
Swift
public var fileSize: Int64? -
An array of content IDs to use for loading content keys with FPS.
Declaration
Swift
public var contentKeyIDList: [String]? -
JWT token for license downloading
Declaration
Swift
public var croToken: String? -
license URL
Declaration
Swift
public var licenseServerUrlString: String? -
basic information about license
Declaration
Swift
public var licenseInfo: LicenseInfo? -
extra data
Declaration
Swift
public var extraData: String? -
VOD images
Declaration
Swift
public var images: Dictionary<String, String>? -
VOD subtitles
Declaration
Swift
public var subtitles: Dictionary<String, String>? -
Download time timestamp
Declaration
Swift
public var downloadTime: TimeInterval? -
Whether renewal is allowed
Declaration
Swift
public var renewAllowed: Bool? -
Period for no watch in ISO 8601 duration format
Declaration
Swift
public var periodNoWatch: String? -
Period for partial watch in ISO 8601 duration format
Declaration
Swift
public var periodPartialWatch: String? -
Period for complete watch in ISO 8601 duration format
Declaration
Swift
public var periodCompleteWatch: String? -
Watch progress of the video
Declaration
Swift
public var watchProgress: Double -
Max watch progress for calculating expiry Date
Declaration
Swift
public var maxWatchProgress: Double -
Duration of the video
Declaration
Swift
public var duration: Double { get } -
AssetData copy
Declaration
Swift
public func mutableAssetDataCopy() -> AssetData -
Factory method to create AssetData from json
Declaration
Swift
public class func create(fromJSON json: String) -> AssetData? -
json representation of AssetData
Declaration
Swift
public func asJSON() -> String