Contents

AVURLAssetHTTPCookiesKey

The HTTP cookies that a URL asset may send with HTTP requests.

Declaration

let AVURLAssetHTTPCookiesKey: String

Discussion

By default, AVURLAsset only has access to cookies in the client’s default cookie storage that apply to the asset’s URL. You can supplement the cookies available to the asset by setting this initialization option.

Cookies don’t apply to non-HTTP(S) URLs. In HTTP Live Streaming, the system may issue many HTTP requests (for example, media, crypt key, variant index) to different paths or hosts. In these cases, HTTP requests won’t contain any cookies that don’t apply to the AVURLAsset URL.

See Also

Options