toServerMedia

fun String.toServerMedia(headers: Map<String, String> = mapOf(), type: Streamable.SourceType = SourceType.Progressive, isVideo: Boolean = false): Streamable.Media.Server

Creates a single Source server media from this String Url.

Return

A single Source.Http media with the given type

Parameters

headers

The headers to be used for the request

type

The type of the source