UZVideoLinkPlay
public struct UZVideoLinkPlay
Cấu trúc linkplay của video
-
Mô tả độ phân giải của linkplay này (Ví dụ 480, 720, 1080)
Declaration
Swift
public var definition: String
-
Linkplay
Declaration
Swift
public var url: URL
-
An instance of NSDictionary that contains keys for specifying options for the initialization of the AVURLAsset. See AVURLAssetPreferPreciseDurationAndTimingKey and AVURLAssetReferenceRestrictionsKey above.
Declaration
Swift
public var options: [String : Any]?
-
Trả về loại
AVURLAsset
cho linkplay nàyDeclaration
Swift
public var avURLAsset: AVURLAsset
-
Video recource item with defination name and specifying options
you can add http-header or other options which mentions in https://developer.apple.com/reference/avfoundation/avurlasset/initialization_options
to add http-header init options like this
let header = ["User-Agent":"UZPlayer"] let definiton.options = ["AVURLAssetHTTPHeaderFieldsKey":header]
Declaration
Swift
public init(definition: String, url: URL, options: [String : Any]? = nil)
Parameters
url
video url
definition
url deifination
options
specifying options for the initialization of the AVURLAsset