Asset
public struct Asset : Equatable
A struct that models timed audiovisual media.
-
Local or Remote Asset URL
Declaration
Swift
public var url: URL -
Headers to be sent with the request to the given URL
Declaration
Swift
public var headers: [String : String] -
Mime type of the asset
Declaration
Swift
public var mimeType: String? -
Creates a new asset object that models the media at the specified URL.
Declaration
Swift
public init( url: URL, headers: [String : String] = [:], mimeType: String? = nil )Parameters
urlA URL to a local, remote, or HTTP Live Streaming media resource.
headersHeaders to be sent with the request to the given URL
mimeTypeMime type of the asset
View on GitHub
Asset Structure Reference