selectSource

open fun selectSource(video: Video): Source

Determines best appropriate Source within given Video object based on logic implemented.

Throws

when the Video passed is null


open fun selectSource(sources: Set<Source>): Source

Attempts to select the HTTPS source included in the source Set, if available. Otherwise, it will select the first source given by the Set Iterator.

It will return null if the sources Set is null or empty.

Return

the selected source

Parameters

sources

the source Set representing the same media with different protocols, for example, HTTP and HTTPS.