UZVideoLinkPlay
public struct UZVideoLinkPlay
extension UZVideoLinkPlay: Equatable
Link Play info
-
Definition (etc 480, 720, 1080)
Declaration
Swift
public var definition: String -
Linkplay URL
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 : AnyHashable]? -
AVURLAssetof this linkPlayDeclaration
Swift
public var avURLAsset: AVURLAsset { get } -
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 : AnyHashable]? = nil)Parameters
urlvideo url
definitionurl deifination
optionsspecifying options for the initialization of the AVURLAsset
-
Declaration
Swift
public static func == (lhs: UZVideoLinkPlay, rhs: UZVideoLinkPlay) -> Bool
UZVideoLinkPlay Structure Reference