BrightcoveSourceSelector
It is the default SourceSelector implementation that will automatically select a Source rendition based on the following rules:
- If an HLS source rendition exists use it (there should be only one, if any)
- If no HLS renditions exists, but MP4 renditions exist, use the rendition that is closest to 256 kBps
- If no HLS or MP4 renditions exist, throw a NoSourceFoundException
Functions
Link copied to clipboard
Given a SourceCollection, finds the Source with the closest bit rate to the given value.
Link copied to clipboard
Searches for HEVC sources in the provided SourceCollection and creates a new SourceCollection with the sources found.
Link copied to clipboard
Searches for non HEVC sources in the provided SourceCollection and creates a new SourceCollection with the sources found.
Link copied to clipboard
open fun findSourcesByProfileVersion(sourceCollection: SourceCollection, profileVersion: String): Set<Source>
Find the Sources in the SourceCollection associated to the provided profile version.
Link copied to clipboard
Returns whether to prefer HLS sources to other delivery types.
Link copied to clipboard
Determines best appropriate Source within given Video object based on logic implemented.
Attempts to select the HTTPS source included in the source Set, if available.
Link copied to clipboard
Sets whether to prefer HLS sources to other delivery types.