to Source
fun String.toSource(headers: Map<String, String> = mapOf(), type: Streamable.SourceType = SourceType.Progressive, isVideo: Boolean = false, isLive: Boolean = false): Streamable.Source.Http
Creates a Http source from the String Url.
Return
A Source from the String Url
Parameters
headers
The headers to be used for the request
type
The type of the source
fun Streamable.InputProvider.toSource(id: String, isVideo: Boolean = false, isLive: Boolean = false): Streamable.Source.Raw