Content

data class Content(val context: Context = ApplicationHolder.applicationContext, val uri: Uri, val headers: Map<String, String>? = null, val cookies: List<HttpCookie>? = null) : MediaSource

A MediaSource that is located at a content Uri

Note that the cross domain redirection is allowed by default, but that can be changed with key/value pairs through the headers parameter with "android-allow-cross-domain-redirect" as the key and "0" or "1" as the value to disallow or allow cross domain redirection.

Constructors

Link copied to clipboard
constructor(context: Context = ApplicationHolder.applicationContext, uri: Uri, headers: Map<String, String>? = null, cookies: List<HttpCookie>? = null)

Properties

Link copied to clipboard

the Context to use when resolving the Uri

Link copied to clipboard
val cookies: List<HttpCookie>? = null

the list of HttpCookie to be sent with the request

Link copied to clipboard
val headers: Map<String, String>? = null

the headers to be sent together with the request for the data. The headers must not include cookies

Link copied to clipboard
val uri: Uri

the Content Uri of the media