Asset

public struct Asset : Equatable

A struct that models timed audiovisual media.

  • url

    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

    url

    A URL to a local, remote, or HTTP Live Streaming media resource.

    headers

    Headers to be sent with the request to the given URL

    mimeType

    Mime type of the asset