findRepresentationByBitrate

open fun findRepresentationByBitrate(representationList: List<Representation>, bitrate: Int): Representation

Finds the highest Representation bitrate up to the the bitrate provided. If no rendition is found, the next higher will be picked.

Return

the representation

Parameters

representationList

the representation list

bitrate

the bitrate